Class CalloutAsset.Builder

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

public static final class CalloutAsset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CalloutAsset.Builder> implements CalloutAssetOrBuilder
 A Callout asset.
 
Protobuf type google.ads.googleads.v18.common.CalloutAsset
  • 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<CalloutAsset.Builder>
    • clear

      public CalloutAsset.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<CalloutAsset.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<CalloutAsset.Builder>
    • getDefaultInstanceForType

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

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

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

      public CalloutAsset.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<CalloutAsset.Builder>
    • setField

      public CalloutAsset.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<CalloutAsset.Builder>
    • clearField

      public CalloutAsset.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<CalloutAsset.Builder>
    • clearOneof

      public CalloutAsset.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<CalloutAsset.Builder>
    • setRepeatedField

      public CalloutAsset.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<CalloutAsset.Builder>
    • addRepeatedField

      public CalloutAsset.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<CalloutAsset.Builder>
    • mergeFrom

      public CalloutAsset.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<CalloutAsset.Builder>
    • mergeFrom

      public CalloutAsset.Builder mergeFrom(CalloutAsset other)
    • isInitialized

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

      public CalloutAsset.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<CalloutAsset.Builder>
      Throws:
      IOException
    • getCalloutText

      public String getCalloutText()
       Required. The callout text.
       The length of this string should be between 1 and 25, inclusive.
       
      string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCalloutText in interface CalloutAssetOrBuilder
      Returns:
      The calloutText.
    • getCalloutTextBytes

      public com.google.protobuf.ByteString getCalloutTextBytes()
       Required. The callout text.
       The length of this string should be between 1 and 25, inclusive.
       
      string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCalloutTextBytes in interface CalloutAssetOrBuilder
      Returns:
      The bytes for calloutText.
    • setCalloutText

      public CalloutAsset.Builder setCalloutText(String value)
       Required. The callout text.
       The length of this string should be between 1 and 25, inclusive.
       
      string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The calloutText to set.
      Returns:
      This builder for chaining.
    • clearCalloutText

      public CalloutAsset.Builder clearCalloutText()
       Required. The callout text.
       The length of this string should be between 1 and 25, inclusive.
       
      string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCalloutTextBytes

      public CalloutAsset.Builder setCalloutTextBytes(com.google.protobuf.ByteString value)
       Required. The callout text.
       The length of this string should be between 1 and 25, inclusive.
       
      string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for calloutText to set.
      Returns:
      This builder for chaining.
    • getStartDate

      public String getStartDate()
       Start date of when this asset is effective and can begin serving, in
       yyyy-MM-dd format.
       
      string start_date = 2;
      Specified by:
      getStartDate in interface CalloutAssetOrBuilder
      Returns:
      The startDate.
    • getStartDateBytes

      public com.google.protobuf.ByteString getStartDateBytes()
       Start date of when this asset is effective and can begin serving, in
       yyyy-MM-dd format.
       
      string start_date = 2;
      Specified by:
      getStartDateBytes in interface CalloutAssetOrBuilder
      Returns:
      The bytes for startDate.
    • setStartDate

      public CalloutAsset.Builder setStartDate(String value)
       Start date of when this asset is effective and can begin serving, in
       yyyy-MM-dd format.
       
      string start_date = 2;
      Parameters:
      value - The startDate to set.
      Returns:
      This builder for chaining.
    • clearStartDate

      public CalloutAsset.Builder clearStartDate()
       Start date of when this asset is effective and can begin serving, in
       yyyy-MM-dd format.
       
      string start_date = 2;
      Returns:
      This builder for chaining.
    • setStartDateBytes

      public CalloutAsset.Builder setStartDateBytes(com.google.protobuf.ByteString value)
       Start date of when this asset is effective and can begin serving, in
       yyyy-MM-dd format.
       
      string start_date = 2;
      Parameters:
      value - The bytes for startDate to set.
      Returns:
      This builder for chaining.
    • getEndDate

      public String getEndDate()
       Last date of when this asset is effective and still serving, in yyyy-MM-dd
       format.
       
      string end_date = 3;
      Specified by:
      getEndDate in interface CalloutAssetOrBuilder
      Returns:
      The endDate.
    • getEndDateBytes

      public com.google.protobuf.ByteString getEndDateBytes()
       Last date of when this asset is effective and still serving, in yyyy-MM-dd
       format.
       
      string end_date = 3;
      Specified by:
      getEndDateBytes in interface CalloutAssetOrBuilder
      Returns:
      The bytes for endDate.
    • setEndDate

      public CalloutAsset.Builder setEndDate(String value)
       Last date of when this asset is effective and still serving, in yyyy-MM-dd
       format.
       
      string end_date = 3;
      Parameters:
      value - The endDate to set.
      Returns:
      This builder for chaining.
    • clearEndDate

      public CalloutAsset.Builder clearEndDate()
       Last date of when this asset is effective and still serving, in yyyy-MM-dd
       format.
       
      string end_date = 3;
      Returns:
      This builder for chaining.
    • setEndDateBytes

      public CalloutAsset.Builder setEndDateBytes(com.google.protobuf.ByteString value)
       Last date of when this asset is effective and still serving, in yyyy-MM-dd
       format.
       
      string end_date = 3;
      Parameters:
      value - The bytes for endDate to set.
      Returns:
      This builder for chaining.
    • getAdScheduleTargetsList

      public List<AdScheduleInfo> getAdScheduleTargetsList()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
      Specified by:
      getAdScheduleTargetsList in interface CalloutAssetOrBuilder
    • getAdScheduleTargetsCount

      public int getAdScheduleTargetsCount()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
      Specified by:
      getAdScheduleTargetsCount in interface CalloutAssetOrBuilder
    • getAdScheduleTargets

      public AdScheduleInfo getAdScheduleTargets(int index)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
      Specified by:
      getAdScheduleTargets in interface CalloutAssetOrBuilder
    • setAdScheduleTargets

      public CalloutAsset.Builder setAdScheduleTargets(int index, AdScheduleInfo value)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • setAdScheduleTargets

      public CalloutAsset.Builder setAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAdScheduleTargets

      public CalloutAsset.Builder addAdScheduleTargets(AdScheduleInfo value)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAdScheduleTargets

      public CalloutAsset.Builder addAdScheduleTargets(int index, AdScheduleInfo value)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAdScheduleTargets

      public CalloutAsset.Builder addAdScheduleTargets(AdScheduleInfo.Builder builderForValue)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAdScheduleTargets

      public CalloutAsset.Builder addAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAllAdScheduleTargets

      public CalloutAsset.Builder addAllAdScheduleTargets(Iterable<? extends AdScheduleInfo> values)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • clearAdScheduleTargets

      public CalloutAsset.Builder clearAdScheduleTargets()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • removeAdScheduleTargets

      public CalloutAsset.Builder removeAdScheduleTargets(int index)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • getAdScheduleTargetsBuilder

      public AdScheduleInfo.Builder getAdScheduleTargetsBuilder(int index)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • getAdScheduleTargetsOrBuilder

      public AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(int index)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
      Specified by:
      getAdScheduleTargetsOrBuilder in interface CalloutAssetOrBuilder
    • getAdScheduleTargetsOrBuilderList

      public List<? extends AdScheduleInfoOrBuilder> getAdScheduleTargetsOrBuilderList()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
      Specified by:
      getAdScheduleTargetsOrBuilderList in interface CalloutAssetOrBuilder
    • addAdScheduleTargetsBuilder

      public AdScheduleInfo.Builder addAdScheduleTargetsBuilder()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • addAdScheduleTargetsBuilder

      public AdScheduleInfo.Builder addAdScheduleTargetsBuilder(int index)
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • getAdScheduleTargetsBuilderList

      public List<AdScheduleInfo.Builder> getAdScheduleTargetsBuilderList()
       List of non-overlapping schedules specifying all time intervals for which
       the asset may serve. There can be a maximum of 6 schedules per day, 42 in
       total.
       
      repeated .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule_targets = 4;
    • setUnknownFields

      public final CalloutAsset.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<CalloutAsset.Builder>
    • mergeUnknownFields

      public final CalloutAsset.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<CalloutAsset.Builder>