Send feedback
Class CreativeTemplateVariable.LongCreativeTemplateVariable.Builder (0.39.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class CreativeTemplateVariable . LongCreativeTemplateVariable . Builder extends GeneratedMessageV3 . Builder<CreativeTemplateVariable . LongCreativeTemplateVariable . Builder > implements CreativeTemplateVariable . LongCreativeTemplateVariableOrBuilder
Represents a long variable defined in a creative template.
Use [LongCreativeTemplateVariableValue][] to specify the value
for this variable when creating [TemplateCreative][] from a
CreativeTemplate .
Protobuf type
google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreativeTemplateVariable . LongCreativeTemplateVariable build ()
buildPartial()
public CreativeTemplateVariable . LongCreativeTemplateVariable buildPartial ()
clear()
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clear ()
Overrides
clearDefaultValue()
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clearDefaultValue ()
Optional. Default value to be filled in when creating creatives from the
creative template.
optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearSampleValue()
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clearSampleValue ()
Optional. Sample value that is used when previewing the template in the
UI.
optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder clone ()
Overrides
getDefaultInstanceForType()
public CreativeTemplateVariable . LongCreativeTemplateVariable getDefaultInstanceForType ()
getDefaultValue()
public long getDefaultValue ()
Optional. Default value to be filled in when creating creatives from the
creative template.
optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
long
The defaultValue.
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getSampleValue()
public long getSampleValue ()
Optional. Sample value that is used when previewing the template in the
UI.
optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
long
The sampleValue.
hasDefaultValue()
public boolean hasDefaultValue ()
Optional. Default value to be filled in when creating creatives from the
creative template.
optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the defaultValue field is set.
hasSampleValue()
public boolean hasSampleValue ()
Optional. Sample value that is used when previewing the template in the
UI.
optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the sampleValue field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CreativeTemplateVariable.LongCreativeTemplateVariable other)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder mergeFrom ( CreativeTemplateVariable . LongCreativeTemplateVariable other )
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreativeTemplateVariable . LongCreativeTemplateVariable . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setDefaultValue(long value)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder setDefaultValue ( long value )
Optional. Default value to be filled in when creating creatives from the
creative template.
optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
long The defaultValue to set.
setField(Descriptors.FieldDescriptor field, Object value)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setSampleValue(long value)
public CreativeTemplateVariable . LongCreativeTemplateVariable . Builder setSampleValue ( long value )
Optional. Sample value that is used when previewing the template in the
UI.
optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
long The sampleValue to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final CreativeTemplateVariable . LongCreativeTemplateVariable . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]