Class Preferences
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.services.Preferences
-
- All Implemented Interfaces:
PreferencesOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class Preferences extends com.google.protobuf.GeneratedMessageV3 implements PreferencesOrBuilder
Set of preferences about the planned mix.
Protobuf typegoogle.ads.googleads.v10.services.Preferences- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPreferences.BuilderSet of preferences about the planned mix.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAD_LENGTH_FIELD_NUMBERstatic intHAS_GUARANTEED_PRICE_FIELD_NUMBERstatic intIS_SKIPPABLE_FIELD_NUMBERstatic intSTARTS_WITH_SOUND_FIELD_NUMBERstatic intTOP_CONTENT_ONLY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ReachPlanAdLengthEnum.ReachPlanAdLengthgetAdLength()The length of the ad.intgetAdLengthValue()The length of the ad.static PreferencesgetDefaultInstance()PreferencesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetHasGuaranteedPrice()True if the price guaranteed.booleangetIsSkippable()True if ad skippable.com.google.protobuf.Parser<Preferences>getParserForType()intgetSerializedSize()booleangetStartsWithSound()True if ad start with sound.booleangetTopContentOnly()True if ad will only show on the top content.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasHasGuaranteedPrice()True if the price guaranteed.inthashCode()booleanhasIsSkippable()True if ad skippable.booleanhasStartsWithSound()True if ad start with sound.booleanhasTopContentOnly()True if ad will only show on the top content.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Preferences.BuildernewBuilder()static Preferences.BuildernewBuilder(Preferences prototype)Preferences.BuildernewBuilderForType()protected Preferences.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PreferencesparseDelimitedFrom(java.io.InputStream input)static PreferencesparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PreferencesparseFrom(byte[] data)static PreferencesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PreferencesparseFrom(com.google.protobuf.ByteString data)static PreferencesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PreferencesparseFrom(com.google.protobuf.CodedInputStream input)static PreferencesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PreferencesparseFrom(java.io.InputStream input)static PreferencesparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PreferencesparseFrom(java.nio.ByteBuffer data)static PreferencesparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Preferences>parser()Preferences.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IS_SKIPPABLE_FIELD_NUMBER
public static final int IS_SKIPPABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STARTS_WITH_SOUND_FIELD_NUMBER
public static final int STARTS_WITH_SOUND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AD_LENGTH_FIELD_NUMBER
public static final int AD_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOP_CONTENT_ONLY_FIELD_NUMBER
public static final int TOP_CONTENT_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_GUARANTEED_PRICE_FIELD_NUMBER
public static final int HAS_GUARANTEED_PRICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasIsSkippable
public boolean hasIsSkippable()
True if ad skippable. If not set, default is any value.
optional bool is_skippable = 6;- Specified by:
hasIsSkippablein interfacePreferencesOrBuilder- Returns:
- Whether the isSkippable field is set.
-
getIsSkippable
public boolean getIsSkippable()
True if ad skippable. If not set, default is any value.
optional bool is_skippable = 6;- Specified by:
getIsSkippablein interfacePreferencesOrBuilder- Returns:
- The isSkippable.
-
hasStartsWithSound
public boolean hasStartsWithSound()
True if ad start with sound. If not set, default is any value.
optional bool starts_with_sound = 7;- Specified by:
hasStartsWithSoundin interfacePreferencesOrBuilder- Returns:
- Whether the startsWithSound field is set.
-
getStartsWithSound
public boolean getStartsWithSound()
True if ad start with sound. If not set, default is any value.
optional bool starts_with_sound = 7;- Specified by:
getStartsWithSoundin interfacePreferencesOrBuilder- Returns:
- The startsWithSound.
-
getAdLengthValue
public int getAdLengthValue()
The length of the ad. If not set, default is any value.
.google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;- Specified by:
getAdLengthValuein interfacePreferencesOrBuilder- Returns:
- The enum numeric value on the wire for adLength.
-
getAdLength
public ReachPlanAdLengthEnum.ReachPlanAdLength getAdLength()
The length of the ad. If not set, default is any value.
.google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;- Specified by:
getAdLengthin interfacePreferencesOrBuilder- Returns:
- The adLength.
-
hasTopContentOnly
public boolean hasTopContentOnly()
True if ad will only show on the top content. If not set, default is false.
optional bool top_content_only = 8;- Specified by:
hasTopContentOnlyin interfacePreferencesOrBuilder- Returns:
- Whether the topContentOnly field is set.
-
getTopContentOnly
public boolean getTopContentOnly()
True if ad will only show on the top content. If not set, default is false.
optional bool top_content_only = 8;- Specified by:
getTopContentOnlyin interfacePreferencesOrBuilder- Returns:
- The topContentOnly.
-
hasHasGuaranteedPrice
public boolean hasHasGuaranteedPrice()
True if the price guaranteed. The cost of serving the ad is agreed upfront and not subject to an auction. If not set, default is any value.
optional bool has_guaranteed_price = 9;- Specified by:
hasHasGuaranteedPricein interfacePreferencesOrBuilder- Returns:
- Whether the hasGuaranteedPrice field is set.
-
getHasGuaranteedPrice
public boolean getHasGuaranteedPrice()
True if the price guaranteed. The cost of serving the ad is agreed upfront and not subject to an auction. If not set, default is any value.
optional bool has_guaranteed_price = 9;- Specified by:
getHasGuaranteedPricein interfacePreferencesOrBuilder- Returns:
- The hasGuaranteedPrice.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Preferences parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Preferences parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Preferences parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Preferences parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Preferences parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Preferences parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Preferences parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Preferences.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Preferences.Builder newBuilder()
-
newBuilder
public static Preferences.Builder newBuilder(Preferences prototype)
-
toBuilder
public Preferences.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Preferences.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Preferences getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Preferences> parser()
-
getParserForType
public com.google.protobuf.Parser<Preferences> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Preferences getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-