All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.resources.CallView Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/resources/call_view.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;

/**
 * 
 * A call view that includes data for call tracking of call-only ads or call
 * extensions.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.CallView} */ public final class CallView extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.CallView) CallViewOrBuilder { private static final long serialVersionUID = 0L; // Use CallView.newBuilder() to construct. private CallView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallView() { resourceName_ = ""; callerCountryCode_ = ""; callerAreaCode_ = ""; startCallDateTime_ = ""; endCallDateTime_ = ""; callTrackingDisplayLocation_ = 0; type_ = 0; callStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallView(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.CallViewProto.internal_static_google_ads_googleads_v17_resources_CallView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.CallViewProto.internal_static_google_ads_googleads_v17_resources_CallView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.CallView.class, com.google.ads.googleads.v17.resources.CallView.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Output only. The resource name of the call view.
   * Call view resource names have the form:
   *
   * `customers/{customer_id}/callViews/{call_detail_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 call view.
   * Call view resource names have the form:
   *
   * `customers/{customer_id}/callViews/{call_detail_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 CALLER_COUNTRY_CODE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object callerCountryCode_ = ""; /** *
   * Output only. Country code of the caller.
   * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callerCountryCode. */ @java.lang.Override public java.lang.String getCallerCountryCode() { java.lang.Object ref = callerCountryCode_; 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(); callerCountryCode_ = s; return s; } } /** *
   * Output only. Country code of the caller.
   * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for callerCountryCode. */ @java.lang.Override public com.google.protobuf.ByteString getCallerCountryCodeBytes() { java.lang.Object ref = callerCountryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerCountryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALLER_AREA_CODE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object callerAreaCode_ = ""; /** *
   * Output only. Area code of the caller. Null if the call duration is shorter
   * than 15 seconds.
   * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callerAreaCode. */ @java.lang.Override public java.lang.String getCallerAreaCode() { java.lang.Object ref = callerAreaCode_; 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(); callerAreaCode_ = s; return s; } } /** *
   * Output only. Area code of the caller. Null if the call duration is shorter
   * than 15 seconds.
   * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for callerAreaCode. */ @java.lang.Override public com.google.protobuf.ByteString getCallerAreaCodeBytes() { java.lang.Object ref = callerAreaCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerAreaCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_DURATION_SECONDS_FIELD_NUMBER = 4; private long callDurationSeconds_ = 0L; /** *
   * Output only. The advertiser-provided call duration in seconds.
   * 
* * int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callDurationSeconds. */ @java.lang.Override public long getCallDurationSeconds() { return callDurationSeconds_; } public static final int START_CALL_DATE_TIME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object startCallDateTime_ = ""; /** *
   * Output only. The advertiser-provided call start date time.
   * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startCallDateTime. */ @java.lang.Override public java.lang.String getStartCallDateTime() { java.lang.Object ref = startCallDateTime_; 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(); startCallDateTime_ = s; return s; } } /** *
   * Output only. The advertiser-provided call start date time.
   * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for startCallDateTime. */ @java.lang.Override public com.google.protobuf.ByteString getStartCallDateTimeBytes() { java.lang.Object ref = startCallDateTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startCallDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int END_CALL_DATE_TIME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object endCallDateTime_ = ""; /** *
   * Output only. The advertiser-provided call end date time.
   * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endCallDateTime. */ @java.lang.Override public java.lang.String getEndCallDateTime() { java.lang.Object ref = endCallDateTime_; 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(); endCallDateTime_ = s; return s; } } /** *
   * Output only. The advertiser-provided call end date time.
   * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for endCallDateTime. */ @java.lang.Override public com.google.protobuf.ByteString getEndCallDateTimeBytes() { java.lang.Object ref = endCallDateTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endCallDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_TRACKING_DISPLAY_LOCATION_FIELD_NUMBER = 7; private int callTrackingDisplayLocation_ = 0; /** *
   * Output only. The call tracking display location.
   * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for callTrackingDisplayLocation. */ @java.lang.Override public int getCallTrackingDisplayLocationValue() { return callTrackingDisplayLocation_; } /** *
   * Output only. The call tracking display location.
   * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callTrackingDisplayLocation. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation getCallTrackingDisplayLocation() { com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation result = com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.forNumber(callTrackingDisplayLocation_); return result == null ? com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 8; private int type_ = 0; /** *
   * Output only. The type of the call.
   * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   * Output only. The type of the call.
   * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallTypeEnum.CallType getType() { com.google.ads.googleads.v17.enums.CallTypeEnum.CallType result = com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.forNumber(type_); return result == null ? com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.UNRECOGNIZED : result; } public static final int CALL_STATUS_FIELD_NUMBER = 9; private int callStatus_ = 0; /** *
   * Output only. The status of the call.
   * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for callStatus. */ @java.lang.Override public int getCallStatusValue() { return callStatus_; } /** *
   * Output only. The status of the call.
   * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus getCallStatus() { com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus result = com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.forNumber(callStatus_); return result == null ? com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.UNRECOGNIZED : result; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerCountryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerCountryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAreaCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callerAreaCode_); } if (callDurationSeconds_ != 0L) { output.writeInt64(4, callDurationSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startCallDateTime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startCallDateTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endCallDateTime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, endCallDateTime_); } if (callTrackingDisplayLocation_ != com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.UNSPECIFIED.getNumber()) { output.writeEnum(7, callTrackingDisplayLocation_); } if (type_ != com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.UNSPECIFIED.getNumber()) { output.writeEnum(8, type_); } if (callStatus_ != com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.UNSPECIFIED.getNumber()) { output.writeEnum(9, callStatus_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerCountryCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerCountryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerAreaCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callerAreaCode_); } if (callDurationSeconds_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, callDurationSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startCallDateTime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startCallDateTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endCallDateTime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, endCallDateTime_); } if (callTrackingDisplayLocation_ != com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, callTrackingDisplayLocation_); } if (type_ != com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, type_); } if (callStatus_ != com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, callStatus_); } 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.CallView)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.CallView other = (com.google.ads.googleads.v17.resources.CallView) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (!getCallerCountryCode() .equals(other.getCallerCountryCode())) return false; if (!getCallerAreaCode() .equals(other.getCallerAreaCode())) return false; if (getCallDurationSeconds() != other.getCallDurationSeconds()) return false; if (!getStartCallDateTime() .equals(other.getStartCallDateTime())) return false; if (!getEndCallDateTime() .equals(other.getEndCallDateTime())) return false; if (callTrackingDisplayLocation_ != other.callTrackingDisplayLocation_) return false; if (type_ != other.type_) return false; if (callStatus_ != other.callStatus_) 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) + CALLER_COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCallerCountryCode().hashCode(); hash = (37 * hash) + CALLER_AREA_CODE_FIELD_NUMBER; hash = (53 * hash) + getCallerAreaCode().hashCode(); hash = (37 * hash) + CALL_DURATION_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallDurationSeconds()); hash = (37 * hash) + START_CALL_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartCallDateTime().hashCode(); hash = (37 * hash) + END_CALL_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndCallDateTime().hashCode(); hash = (37 * hash) + CALL_TRACKING_DISPLAY_LOCATION_FIELD_NUMBER; hash = (53 * hash) + callTrackingDisplayLocation_; hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CALL_STATUS_FIELD_NUMBER; hash = (53 * hash) + callStatus_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.CallView parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.CallView 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.CallView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.CallView 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.CallView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.CallView 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.CallView 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.CallView 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.CallView 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.CallView 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.CallView 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.CallView 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.CallView 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; } /** *
   * A call view that includes data for call tracking of call-only ads or call
   * extensions.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.CallView} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.CallView) com.google.ads.googleads.v17.resources.CallViewOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.CallViewProto.internal_static_google_ads_googleads_v17_resources_CallView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.CallViewProto.internal_static_google_ads_googleads_v17_resources_CallView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.CallView.class, com.google.ads.googleads.v17.resources.CallView.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.CallView.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceName_ = ""; callerCountryCode_ = ""; callerAreaCode_ = ""; callDurationSeconds_ = 0L; startCallDateTime_ = ""; endCallDateTime_ = ""; callTrackingDisplayLocation_ = 0; type_ = 0; callStatus_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.CallViewProto.internal_static_google_ads_googleads_v17_resources_CallView_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.CallView getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.CallView.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.CallView build() { com.google.ads.googleads.v17.resources.CallView result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.CallView buildPartial() { com.google.ads.googleads.v17.resources.CallView result = new com.google.ads.googleads.v17.resources.CallView(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.resources.CallView result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.callerCountryCode_ = callerCountryCode_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.callerAreaCode_ = callerAreaCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.callDurationSeconds_ = callDurationSeconds_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.startCallDateTime_ = startCallDateTime_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.endCallDateTime_ = endCallDateTime_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.callTrackingDisplayLocation_ = callTrackingDisplayLocation_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.callStatus_ = callStatus_; } } @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.CallView) { return mergeFrom((com.google.ads.googleads.v17.resources.CallView)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.CallView other) { if (other == com.google.ads.googleads.v17.resources.CallView.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getCallerCountryCode().isEmpty()) { callerCountryCode_ = other.callerCountryCode_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getCallerAreaCode().isEmpty()) { callerAreaCode_ = other.callerAreaCode_; bitField0_ |= 0x00000004; onChanged(); } if (other.getCallDurationSeconds() != 0L) { setCallDurationSeconds(other.getCallDurationSeconds()); } if (!other.getStartCallDateTime().isEmpty()) { startCallDateTime_ = other.startCallDateTime_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getEndCallDateTime().isEmpty()) { endCallDateTime_ = other.endCallDateTime_; bitField0_ |= 0x00000020; onChanged(); } if (other.callTrackingDisplayLocation_ != 0) { setCallTrackingDisplayLocationValue(other.getCallTrackingDisplayLocationValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.callStatus_ != 0) { setCallStatusValue(other.getCallStatusValue()); } 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 18: { callerCountryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { callerAreaCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { callDurationSeconds_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { startCallDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { endCallDateTime_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { callTrackingDisplayLocation_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { type_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { callStatus_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 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 call view.
     * Call view resource names have the form:
     *
     * `customers/{customer_id}/callViews/{call_detail_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 call view.
     * Call view resource names have the form:
     *
     * `customers/{customer_id}/callViews/{call_detail_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 call view.
     * Call view resource names have the form:
     *
     * `customers/{customer_id}/callViews/{call_detail_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 call view.
     * Call view resource names have the form:
     *
     * `customers/{customer_id}/callViews/{call_detail_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 call view.
     * Call view resource names have the form:
     *
     * `customers/{customer_id}/callViews/{call_detail_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 java.lang.Object callerCountryCode_ = ""; /** *
     * Output only. Country code of the caller.
     * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callerCountryCode. */ public java.lang.String getCallerCountryCode() { java.lang.Object ref = callerCountryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerCountryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. Country code of the caller.
     * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for callerCountryCode. */ public com.google.protobuf.ByteString getCallerCountryCodeBytes() { java.lang.Object ref = callerCountryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerCountryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. Country code of the caller.
     * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The callerCountryCode to set. * @return This builder for chaining. */ public Builder setCallerCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callerCountryCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Output only. Country code of the caller.
     * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCallerCountryCode() { callerCountryCode_ = getDefaultInstance().getCallerCountryCode(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Output only. Country code of the caller.
     * 
* * string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for callerCountryCode to set. * @return This builder for chaining. */ public Builder setCallerCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callerCountryCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object callerAreaCode_ = ""; /** *
     * Output only. Area code of the caller. Null if the call duration is shorter
     * than 15 seconds.
     * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callerAreaCode. */ public java.lang.String getCallerAreaCode() { java.lang.Object ref = callerAreaCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerAreaCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. Area code of the caller. Null if the call duration is shorter
     * than 15 seconds.
     * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for callerAreaCode. */ public com.google.protobuf.ByteString getCallerAreaCodeBytes() { java.lang.Object ref = callerAreaCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callerAreaCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. Area code of the caller. Null if the call duration is shorter
     * than 15 seconds.
     * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The callerAreaCode to set. * @return This builder for chaining. */ public Builder setCallerAreaCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callerAreaCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. Area code of the caller. Null if the call duration is shorter
     * than 15 seconds.
     * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCallerAreaCode() { callerAreaCode_ = getDefaultInstance().getCallerAreaCode(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Output only. Area code of the caller. Null if the call duration is shorter
     * than 15 seconds.
     * 
* * string caller_area_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for callerAreaCode to set. * @return This builder for chaining. */ public Builder setCallerAreaCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callerAreaCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long callDurationSeconds_ ; /** *
     * Output only. The advertiser-provided call duration in seconds.
     * 
* * int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callDurationSeconds. */ @java.lang.Override public long getCallDurationSeconds() { return callDurationSeconds_; } /** *
     * Output only. The advertiser-provided call duration in seconds.
     * 
* * int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The callDurationSeconds to set. * @return This builder for chaining. */ public Builder setCallDurationSeconds(long value) { callDurationSeconds_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Output only. The advertiser-provided call duration in seconds.
     * 
* * int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCallDurationSeconds() { bitField0_ = (bitField0_ & ~0x00000008); callDurationSeconds_ = 0L; onChanged(); return this; } private java.lang.Object startCallDateTime_ = ""; /** *
     * Output only. The advertiser-provided call start date time.
     * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startCallDateTime. */ public java.lang.String getStartCallDateTime() { java.lang.Object ref = startCallDateTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startCallDateTime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The advertiser-provided call start date time.
     * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for startCallDateTime. */ public com.google.protobuf.ByteString getStartCallDateTimeBytes() { java.lang.Object ref = startCallDateTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startCallDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The advertiser-provided call start date time.
     * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The startCallDateTime to set. * @return This builder for chaining. */ public Builder setStartCallDateTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startCallDateTime_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. The advertiser-provided call start date time.
     * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStartCallDateTime() { startCallDateTime_ = getDefaultInstance().getStartCallDateTime(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. The advertiser-provided call start date time.
     * 
* * string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for startCallDateTime to set. * @return This builder for chaining. */ public Builder setStartCallDateTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); startCallDateTime_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object endCallDateTime_ = ""; /** *
     * Output only. The advertiser-provided call end date time.
     * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endCallDateTime. */ public java.lang.String getEndCallDateTime() { java.lang.Object ref = endCallDateTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endCallDateTime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The advertiser-provided call end date time.
     * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for endCallDateTime. */ public com.google.protobuf.ByteString getEndCallDateTimeBytes() { java.lang.Object ref = endCallDateTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endCallDateTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The advertiser-provided call end date time.
     * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The endCallDateTime to set. * @return This builder for chaining. */ public Builder setEndCallDateTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endCallDateTime_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. The advertiser-provided call end date time.
     * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEndCallDateTime() { endCallDateTime_ = getDefaultInstance().getEndCallDateTime(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Output only. The advertiser-provided call end date time.
     * 
* * string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for endCallDateTime to set. * @return This builder for chaining. */ public Builder setEndCallDateTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endCallDateTime_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int callTrackingDisplayLocation_ = 0; /** *
     * Output only. The call tracking display location.
     * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for callTrackingDisplayLocation. */ @java.lang.Override public int getCallTrackingDisplayLocationValue() { return callTrackingDisplayLocation_; } /** *
     * Output only. The call tracking display location.
     * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for callTrackingDisplayLocation to set. * @return This builder for chaining. */ public Builder setCallTrackingDisplayLocationValue(int value) { callTrackingDisplayLocation_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Output only. The call tracking display location.
     * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callTrackingDisplayLocation. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation getCallTrackingDisplayLocation() { com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation result = com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.forNumber(callTrackingDisplayLocation_); return result == null ? com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation.UNRECOGNIZED : result; } /** *
     * Output only. The call tracking display location.
     * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The callTrackingDisplayLocation to set. * @return This builder for chaining. */ public Builder setCallTrackingDisplayLocation(com.google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; callTrackingDisplayLocation_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The call tracking display location.
     * 
* * .google.ads.googleads.v17.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCallTrackingDisplayLocation() { bitField0_ = (bitField0_ & ~0x00000040); callTrackingDisplayLocation_ = 0; onChanged(); return this; } private int type_ = 0; /** *
     * Output only. The type of the call.
     * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Output only. The type of the call.
     * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The type of the call.
     * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v17.enums.CallTypeEnum.CallType getType() { com.google.ads.googleads.v17.enums.CallTypeEnum.CallType result = com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.forNumber(type_); return result == null ? com.google.ads.googleads.v17.enums.CallTypeEnum.CallType.UNRECOGNIZED : result; } /** *
     * Output only. The type of the call.
     * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.ads.googleads.v17.enums.CallTypeEnum.CallType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of the call.
     * 
* * .google.ads.googleads.v17.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000080); type_ = 0; onChanged(); return this; } private int callStatus_ = 0; /** *
     * Output only. The status of the call.
     * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for callStatus. */ @java.lang.Override public int getCallStatusValue() { return callStatus_; } /** *
     * Output only. The status of the call.
     * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for callStatus to set. * @return This builder for chaining. */ public Builder setCallStatusValue(int value) { callStatus_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Output only. The status of the call.
     * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus getCallStatus() { com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus result = com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.forNumber(callStatus_); return result == null ? com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus.UNRECOGNIZED : result; } /** *
     * Output only. The status of the call.
     * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The callStatus to set. * @return This builder for chaining. */ public Builder setCallStatus(com.google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; callStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The status of the call.
     * 
* * .google.ads.googleads.v17.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCallStatus() { bitField0_ = (bitField0_ & ~0x00000100); callStatus_ = 0; onChanged(); return this; } @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.CallView) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.CallView) private static final com.google.ads.googleads.v17.resources.CallView DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.CallView(); } public static com.google.ads.googleads.v17.resources.CallView getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallView 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.CallView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy