Class CallView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
com.google.ads.googleads.v18.resources.CallView.Builder
All Implemented Interfaces:
CallViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CallView

public static final class CallView.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder> implements CallViewOrBuilder
 A call view that includes data for call tracking of call-only ads or call
 extensions.
 
Protobuf type google.ads.googleads.v18.resources.CallView
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • clear

      public CallView.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • getDescriptorForType

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

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

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

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

      public CallView.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • setField

      public CallView.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • clearField

      public CallView.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • clearOneof

      public CallView.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • setRepeatedField

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

      public CallView.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • mergeFrom

      public CallView.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CallView.Builder>
    • mergeFrom

      public CallView.Builder mergeFrom(CallView other)
    • isInitialized

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

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

      public String getResourceName()
       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) = { ... }
      Specified by:
      getResourceName in interface CallViewOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       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) = { ... }
      Specified by:
      getResourceNameBytes in interface CallViewOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public CallView.Builder setResourceName(String value)
       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) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public CallView.Builder clearResourceName()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public CallView.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getCallerCountryCode

      public String getCallerCountryCode()
       Output only. Country code of the caller.
       
      string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallerCountryCode in interface CallViewOrBuilder
      Returns:
      The callerCountryCode.
    • getCallerCountryCodeBytes

      public com.google.protobuf.ByteString getCallerCountryCodeBytes()
       Output only. Country code of the caller.
       
      string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallerCountryCodeBytes in interface CallViewOrBuilder
      Returns:
      The bytes for callerCountryCode.
    • setCallerCountryCode

      public CallView.Builder setCallerCountryCode(String value)
       Output only. Country code of the caller.
       
      string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The callerCountryCode to set.
      Returns:
      This builder for chaining.
    • clearCallerCountryCode

      public CallView.Builder clearCallerCountryCode()
       Output only. Country code of the caller.
       
      string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCallerCountryCodeBytes

      public CallView.Builder setCallerCountryCodeBytes(com.google.protobuf.ByteString value)
       Output only. Country code of the caller.
       
      string caller_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for callerCountryCode to set.
      Returns:
      This builder for chaining.
    • getCallerAreaCode

      public String getCallerAreaCode()
       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];
      Specified by:
      getCallerAreaCode in interface CallViewOrBuilder
      Returns:
      The callerAreaCode.
    • getCallerAreaCodeBytes

      public com.google.protobuf.ByteString getCallerAreaCodeBytes()
       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];
      Specified by:
      getCallerAreaCodeBytes in interface CallViewOrBuilder
      Returns:
      The bytes for callerAreaCode.
    • setCallerAreaCode

      public CallView.Builder setCallerAreaCode(String value)
       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];
      Parameters:
      value - The callerAreaCode to set.
      Returns:
      This builder for chaining.
    • clearCallerAreaCode

      public CallView.Builder clearCallerAreaCode()
       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];
      Returns:
      This builder for chaining.
    • setCallerAreaCodeBytes

      public CallView.Builder setCallerAreaCodeBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for callerAreaCode to set.
      Returns:
      This builder for chaining.
    • getCallDurationSeconds

      public long getCallDurationSeconds()
       Output only. The advertiser-provided call duration in seconds.
       
      int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallDurationSeconds in interface CallViewOrBuilder
      Returns:
      The callDurationSeconds.
    • setCallDurationSeconds

      public CallView.Builder setCallDurationSeconds(long value)
       Output only. The advertiser-provided call duration in seconds.
       
      int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The callDurationSeconds to set.
      Returns:
      This builder for chaining.
    • clearCallDurationSeconds

      public CallView.Builder clearCallDurationSeconds()
       Output only. The advertiser-provided call duration in seconds.
       
      int64 call_duration_seconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStartCallDateTime

      public String getStartCallDateTime()
       Output only. The advertiser-provided call start date time.
       
      string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartCallDateTime in interface CallViewOrBuilder
      Returns:
      The startCallDateTime.
    • getStartCallDateTimeBytes

      public com.google.protobuf.ByteString getStartCallDateTimeBytes()
       Output only. The advertiser-provided call start date time.
       
      string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartCallDateTimeBytes in interface CallViewOrBuilder
      Returns:
      The bytes for startCallDateTime.
    • setStartCallDateTime

      public CallView.Builder setStartCallDateTime(String value)
       Output only. The advertiser-provided call start date time.
       
      string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The startCallDateTime to set.
      Returns:
      This builder for chaining.
    • clearStartCallDateTime

      public CallView.Builder clearStartCallDateTime()
       Output only. The advertiser-provided call start date time.
       
      string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setStartCallDateTimeBytes

      public CallView.Builder setStartCallDateTimeBytes(com.google.protobuf.ByteString value)
       Output only. The advertiser-provided call start date time.
       
      string start_call_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for startCallDateTime to set.
      Returns:
      This builder for chaining.
    • getEndCallDateTime

      public String getEndCallDateTime()
       Output only. The advertiser-provided call end date time.
       
      string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndCallDateTime in interface CallViewOrBuilder
      Returns:
      The endCallDateTime.
    • getEndCallDateTimeBytes

      public com.google.protobuf.ByteString getEndCallDateTimeBytes()
       Output only. The advertiser-provided call end date time.
       
      string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndCallDateTimeBytes in interface CallViewOrBuilder
      Returns:
      The bytes for endCallDateTime.
    • setEndCallDateTime

      public CallView.Builder setEndCallDateTime(String value)
       Output only. The advertiser-provided call end date time.
       
      string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The endCallDateTime to set.
      Returns:
      This builder for chaining.
    • clearEndCallDateTime

      public CallView.Builder clearEndCallDateTime()
       Output only. The advertiser-provided call end date time.
       
      string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEndCallDateTimeBytes

      public CallView.Builder setEndCallDateTimeBytes(com.google.protobuf.ByteString value)
       Output only. The advertiser-provided call end date time.
       
      string end_call_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for endCallDateTime to set.
      Returns:
      This builder for chaining.
    • getCallTrackingDisplayLocationValue

      public int getCallTrackingDisplayLocationValue()
       Output only. The call tracking display location.
       
      .google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallTrackingDisplayLocationValue in interface CallViewOrBuilder
      Returns:
      The enum numeric value on the wire for callTrackingDisplayLocation.
    • setCallTrackingDisplayLocationValue

      public CallView.Builder setCallTrackingDisplayLocationValue(int value)
       Output only. The call tracking display location.
       
      .google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for callTrackingDisplayLocation to set.
      Returns:
      This builder for chaining.
    • getCallTrackingDisplayLocation

      public CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation getCallTrackingDisplayLocation()
       Output only. The call tracking display location.
       
      .google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallTrackingDisplayLocation in interface CallViewOrBuilder
      Returns:
      The callTrackingDisplayLocation.
    • setCallTrackingDisplayLocation

       Output only. The call tracking display location.
       
      .google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The callTrackingDisplayLocation to set.
      Returns:
      This builder for chaining.
    • clearCallTrackingDisplayLocation

      public CallView.Builder clearCallTrackingDisplayLocation()
       Output only. The call tracking display location.
       
      .google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of the call.
       
      .google.ads.googleads.v18.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface CallViewOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public CallView.Builder setTypeValue(int value)
       Output only. The type of the call.
       
      .google.ads.googleads.v18.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public CallTypeEnum.CallType getType()
       Output only. The type of the call.
       
      .google.ads.googleads.v18.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface CallViewOrBuilder
      Returns:
      The type.
    • setType

      public CallView.Builder setType(CallTypeEnum.CallType value)
       Output only. The type of the call.
       
      .google.ads.googleads.v18.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public CallView.Builder clearType()
       Output only. The type of the call.
       
      .google.ads.googleads.v18.enums.CallTypeEnum.CallType type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCallStatusValue

      public int getCallStatusValue()
       Output only. The status of the call.
       
      .google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallStatusValue in interface CallViewOrBuilder
      Returns:
      The enum numeric value on the wire for callStatus.
    • setCallStatusValue

      public CallView.Builder setCallStatusValue(int value)
       Output only. The status of the call.
       
      .google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for callStatus to set.
      Returns:
      This builder for chaining.
    • getCallStatus

       Output only. The status of the call.
       
      .google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCallStatus in interface CallViewOrBuilder
      Returns:
      The callStatus.
    • setCallStatus

       Output only. The status of the call.
       
      .google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The callStatus to set.
      Returns:
      This builder for chaining.
    • clearCallStatus

      public CallView.Builder clearCallStatus()
       Output only. The status of the call.
       
      .google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CallView.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>
    • mergeUnknownFields

      public final CallView.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CallView.Builder>