Class SitelinkAsset.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public SitelinkAsset.Builder mergeFrom(SitelinkAsset other)
    • isInitialized

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

      public SitelinkAsset.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<SitelinkAsset.Builder>
      Throws:
      IOException
    • getLinkText

      public String getLinkText()
       Required. URL display text for the sitelink.
       The length of this string should be between 1 and 25, inclusive.
       
      string link_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLinkText in interface SitelinkAssetOrBuilder
      Returns:
      The linkText.
    • getLinkTextBytes

      public com.google.protobuf.ByteString getLinkTextBytes()
       Required. URL display text for the sitelink.
       The length of this string should be between 1 and 25, inclusive.
       
      string link_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLinkTextBytes in interface SitelinkAssetOrBuilder
      Returns:
      The bytes for linkText.
    • setLinkText

      public SitelinkAsset.Builder setLinkText(String value)
       Required. URL display text for the sitelink.
       The length of this string should be between 1 and 25, inclusive.
       
      string link_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The linkText to set.
      Returns:
      This builder for chaining.
    • clearLinkText

      public SitelinkAsset.Builder clearLinkText()
       Required. URL display text for the sitelink.
       The length of this string should be between 1 and 25, inclusive.
       
      string link_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLinkTextBytes

      public SitelinkAsset.Builder setLinkTextBytes(com.google.protobuf.ByteString value)
       Required. URL display text for the sitelink.
       The length of this string should be between 1 and 25, inclusive.
       
      string link_text = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for linkText to set.
      Returns:
      This builder for chaining.
    • getDescription1

      public String getDescription1()
       First line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description2
       must also be set.
       
      string description1 = 2;
      Specified by:
      getDescription1 in interface SitelinkAssetOrBuilder
      Returns:
      The description1.
    • getDescription1Bytes

      public com.google.protobuf.ByteString getDescription1Bytes()
       First line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description2
       must also be set.
       
      string description1 = 2;
      Specified by:
      getDescription1Bytes in interface SitelinkAssetOrBuilder
      Returns:
      The bytes for description1.
    • setDescription1

      public SitelinkAsset.Builder setDescription1(String value)
       First line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description2
       must also be set.
       
      string description1 = 2;
      Parameters:
      value - The description1 to set.
      Returns:
      This builder for chaining.
    • clearDescription1

      public SitelinkAsset.Builder clearDescription1()
       First line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description2
       must also be set.
       
      string description1 = 2;
      Returns:
      This builder for chaining.
    • setDescription1Bytes

      public SitelinkAsset.Builder setDescription1Bytes(com.google.protobuf.ByteString value)
       First line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description2
       must also be set.
       
      string description1 = 2;
      Parameters:
      value - The bytes for description1 to set.
      Returns:
      This builder for chaining.
    • getDescription2

      public String getDescription2()
       Second line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description1
       must also be set.
       
      string description2 = 3;
      Specified by:
      getDescription2 in interface SitelinkAssetOrBuilder
      Returns:
      The description2.
    • getDescription2Bytes

      public com.google.protobuf.ByteString getDescription2Bytes()
       Second line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description1
       must also be set.
       
      string description2 = 3;
      Specified by:
      getDescription2Bytes in interface SitelinkAssetOrBuilder
      Returns:
      The bytes for description2.
    • setDescription2

      public SitelinkAsset.Builder setDescription2(String value)
       Second line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description1
       must also be set.
       
      string description2 = 3;
      Parameters:
      value - The description2 to set.
      Returns:
      This builder for chaining.
    • clearDescription2

      public SitelinkAsset.Builder clearDescription2()
       Second line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description1
       must also be set.
       
      string description2 = 3;
      Returns:
      This builder for chaining.
    • setDescription2Bytes

      public SitelinkAsset.Builder setDescription2Bytes(com.google.protobuf.ByteString value)
       Second line of the description for the sitelink.
       If set, the length should be between 1 and 35, inclusive, and description1
       must also be set.
       
      string description2 = 3;
      Parameters:
      value - The bytes for description2 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 = 4;
      Specified by:
      getStartDate in interface SitelinkAssetOrBuilder
      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 = 4;
      Specified by:
      getStartDateBytes in interface SitelinkAssetOrBuilder
      Returns:
      The bytes for startDate.
    • setStartDate

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

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

      public SitelinkAsset.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 = 4;
      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 = 5;
      Specified by:
      getEndDate in interface SitelinkAssetOrBuilder
      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 = 5;
      Specified by:
      getEndDateBytes in interface SitelinkAssetOrBuilder
      Returns:
      The bytes for endDate.
    • setEndDate

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

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

      public SitelinkAsset.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 = 5;
      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 = 6;
      Specified by:
      getAdScheduleTargetsList in interface SitelinkAssetOrBuilder
    • 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 = 6;
      Specified by:
      getAdScheduleTargetsCount in interface SitelinkAssetOrBuilder
    • 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 = 6;
      Specified by:
      getAdScheduleTargets in interface SitelinkAssetOrBuilder
    • setAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • setAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • addAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • addAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • addAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • addAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • addAllAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • clearAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • removeAdScheduleTargets

      public SitelinkAsset.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 = 6;
    • 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 = 6;
    • 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 = 6;
      Specified by:
      getAdScheduleTargetsOrBuilder in interface SitelinkAssetOrBuilder
    • 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 = 6;
      Specified by:
      getAdScheduleTargetsOrBuilderList in interface SitelinkAssetOrBuilder
    • 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 = 6;
    • 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 = 6;
    • 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 = 6;
    • setUnknownFields

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

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