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 Summary
Modifier and TypeMethodDescriptionaddAdScheduleTargets(int index, AdScheduleInfo value) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargets(AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargetsBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAllAdScheduleTargets(Iterable<? extends AdScheduleInfo> values) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()List of non-overlapping schedules specifying all time intervals for which the asset may serve.First line of the description for the sitelink.Second line of the description for the sitelink.Last date of when this asset is effective and still serving, in yyyy-MM-dd format.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Required.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.clone()getAdScheduleTargets(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.getAdScheduleTargetsBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.intList of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.getAdScheduleTargetsOrBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List<? extends AdScheduleInfoOrBuilder>List of non-overlapping schedules specifying all time intervals for which the asset may serve.First line of the description for the sitelink.com.google.protobuf.ByteStringFirst line of the description for the sitelink.Second line of the description for the sitelink.com.google.protobuf.ByteStringSecond line of the description for the sitelink.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorLast date of when this asset is effective and still serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringLast date of when this asset is effective and still serving, in yyyy-MM-dd format.Required.com.google.protobuf.ByteStringRequired.Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringStart date of when this asset is effective and can begin serving, in yyyy-MM-dd format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(SitelinkAsset other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final SitelinkAsset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAdScheduleTargets(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setAdScheduleTargets(int index, AdScheduleInfo value) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setDescription1(String value) First line of the description for the sitelink.setDescription1Bytes(com.google.protobuf.ByteString value) First line of the description for the sitelink.setDescription2(String value) Second line of the description for the sitelink.setDescription2Bytes(com.google.protobuf.ByteString value) Second line of the description for the sitelink.setEndDate(String value) Last date of when this asset is effective and still serving, in yyyy-MM-dd format.setEndDateBytes(com.google.protobuf.ByteString value) Last date of when this asset is effective and still serving, in yyyy-MM-dd format.setLinkText(String value) Required.setLinkTextBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartDate(String value) Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.setStartDateBytes(com.google.protobuf.ByteString value) Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.final SitelinkAsset.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
setField
public SitelinkAsset.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
setRepeatedField
public SitelinkAsset.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
addRepeatedField
public SitelinkAsset.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SitelinkAsset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SitelinkAsset.Builder>- Throws:
IOException
-
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:
getLinkTextin interfaceSitelinkAssetOrBuilder- 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:
getLinkTextBytesin interfaceSitelinkAssetOrBuilder- Returns:
- The bytes for linkText.
-
setLinkText
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
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
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
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:
getDescription1in interfaceSitelinkAssetOrBuilder- 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:
getDescription1Bytesin interfaceSitelinkAssetOrBuilder- Returns:
- The bytes for description1.
-
setDescription1
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
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
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
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:
getDescription2in interfaceSitelinkAssetOrBuilder- 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:
getDescription2Bytesin interfaceSitelinkAssetOrBuilder- Returns:
- The bytes for description2.
-
setDescription2
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
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
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
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 4;- Specified by:
getStartDatein interfaceSitelinkAssetOrBuilder- 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:
getStartDateBytesin interfaceSitelinkAssetOrBuilder- Returns:
- The bytes for startDate.
-
setStartDate
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
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
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
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 5;- Specified by:
getEndDatein interfaceSitelinkAssetOrBuilder- 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:
getEndDateBytesin interfaceSitelinkAssetOrBuilder- Returns:
- The bytes for endDate.
-
setEndDate
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
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
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
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:
getAdScheduleTargetsListin interfaceSitelinkAssetOrBuilder
-
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:
getAdScheduleTargetsCountin interfaceSitelinkAssetOrBuilder
-
getAdScheduleTargets
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:
getAdScheduleTargetsin interfaceSitelinkAssetOrBuilder
-
setAdScheduleTargets
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
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
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
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
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
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
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
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
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:
getAdScheduleTargetsOrBuilderin interfaceSitelinkAssetOrBuilder
-
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:
getAdScheduleTargetsOrBuilderListin interfaceSitelinkAssetOrBuilder
-
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-
mergeUnknownFields
public final SitelinkAsset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SitelinkAsset.Builder>
-