Class PolicyTopicEntry
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.common.PolicyTopicEntry
-
- All Implemented Interfaces:
PolicyTopicEntryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class PolicyTopicEntry extends com.google.protobuf.GeneratedMessageV3 implements PolicyTopicEntryOrBuilder
Policy finding attached to a resource (e.g. alcohol policy associated with a site that sells alcohol). Each PolicyTopicEntry has a topic that indicates the specific ads policy the entry is about and a type to indicate the effect that the entry will have on serving. It may optionally have one or more evidences that indicate the reason for the finding. It may also optionally have one or more constraints that provide details about how serving may be restricted.
Protobuf typegoogle.ads.googleads.v10.common.PolicyTopicEntry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicyTopicEntry.BuilderPolicy finding attached to a resource (e.g.-
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 intCONSTRAINTS_FIELD_NUMBERstatic intEVIDENCES_FIELD_NUMBERstatic intTOPIC_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)PolicyTopicConstraintgetConstraints(int index)Indicates how serving of this resource may be affected (e.g.intgetConstraintsCount()Indicates how serving of this resource may be affected (e.g.java.util.List<PolicyTopicConstraint>getConstraintsList()Indicates how serving of this resource may be affected (e.g.PolicyTopicConstraintOrBuildergetConstraintsOrBuilder(int index)Indicates how serving of this resource may be affected (e.g.java.util.List<? extends PolicyTopicConstraintOrBuilder>getConstraintsOrBuilderList()Indicates how serving of this resource may be affected (e.g.static PolicyTopicEntrygetDefaultInstance()PolicyTopicEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()PolicyTopicEvidencegetEvidences(int index)Additional information that explains policy finding (e.g.intgetEvidencesCount()Additional information that explains policy finding (e.g.java.util.List<PolicyTopicEvidence>getEvidencesList()Additional information that explains policy finding (e.g.PolicyTopicEvidenceOrBuildergetEvidencesOrBuilder(int index)Additional information that explains policy finding (e.g.java.util.List<? extends PolicyTopicEvidenceOrBuilder>getEvidencesOrBuilderList()Additional information that explains policy finding (e.g.com.google.protobuf.Parser<PolicyTopicEntry>getParserForType()intgetSerializedSize()java.lang.StringgetTopic()Policy topic this finding refers to.com.google.protobuf.ByteStringgetTopicBytes()Policy topic this finding refers to.PolicyTopicEntryTypeEnum.PolicyTopicEntryTypegetType()Describes the negative or positive effect this policy will have on serving.intgetTypeValue()Describes the negative or positive effect this policy will have on serving.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasTopic()Policy topic this finding refers to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PolicyTopicEntry.BuildernewBuilder()static PolicyTopicEntry.BuildernewBuilder(PolicyTopicEntry prototype)PolicyTopicEntry.BuildernewBuilderForType()protected PolicyTopicEntry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PolicyTopicEntryparseDelimitedFrom(java.io.InputStream input)static PolicyTopicEntryparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyTopicEntryparseFrom(byte[] data)static PolicyTopicEntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyTopicEntryparseFrom(com.google.protobuf.ByteString data)static PolicyTopicEntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyTopicEntryparseFrom(com.google.protobuf.CodedInputStream input)static PolicyTopicEntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyTopicEntryparseFrom(java.io.InputStream input)static PolicyTopicEntryparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyTopicEntryparseFrom(java.nio.ByteBuffer data)static PolicyTopicEntryparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PolicyTopicEntry>parser()PolicyTopicEntry.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
-
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVIDENCES_FIELD_NUMBER
public static final int EVIDENCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSTRAINTS_FIELD_NUMBER
public static final int CONSTRAINTS_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
-
hasTopic
public boolean hasTopic()
Policy topic this finding refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API version and may change at any time.
optional string topic = 5;- Specified by:
hasTopicin interfacePolicyTopicEntryOrBuilder- Returns:
- Whether the topic field is set.
-
getTopic
public java.lang.String getTopic()
Policy topic this finding refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API version and may change at any time.
optional string topic = 5;- Specified by:
getTopicin interfacePolicyTopicEntryOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()
Policy topic this finding refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API version and may change at any time.
optional string topic = 5;- Specified by:
getTopicBytesin interfacePolicyTopicEntryOrBuilder- Returns:
- The bytes for topic.
-
getTypeValue
public int getTypeValue()
Describes the negative or positive effect this policy will have on serving.
.google.ads.googleads.v10.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;- Specified by:
getTypeValuein interfacePolicyTopicEntryOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
public PolicyTopicEntryTypeEnum.PolicyTopicEntryType getType()
Describes the negative or positive effect this policy will have on serving.
.google.ads.googleads.v10.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;- Specified by:
getTypein interfacePolicyTopicEntryOrBuilder- Returns:
- The type.
-
getEvidencesList
public java.util.List<PolicyTopicEvidence> getEvidencesList()
Additional information that explains policy finding (e.g. the brand name for a trademark finding).
repeated .google.ads.googleads.v10.common.PolicyTopicEvidence evidences = 3;- Specified by:
getEvidencesListin interfacePolicyTopicEntryOrBuilder
-
getEvidencesOrBuilderList
public java.util.List<? extends PolicyTopicEvidenceOrBuilder> getEvidencesOrBuilderList()
Additional information that explains policy finding (e.g. the brand name for a trademark finding).
repeated .google.ads.googleads.v10.common.PolicyTopicEvidence evidences = 3;- Specified by:
getEvidencesOrBuilderListin interfacePolicyTopicEntryOrBuilder
-
getEvidencesCount
public int getEvidencesCount()
Additional information that explains policy finding (e.g. the brand name for a trademark finding).
repeated .google.ads.googleads.v10.common.PolicyTopicEvidence evidences = 3;- Specified by:
getEvidencesCountin interfacePolicyTopicEntryOrBuilder
-
getEvidences
public PolicyTopicEvidence getEvidences(int index)
Additional information that explains policy finding (e.g. the brand name for a trademark finding).
repeated .google.ads.googleads.v10.common.PolicyTopicEvidence evidences = 3;- Specified by:
getEvidencesin interfacePolicyTopicEntryOrBuilder
-
getEvidencesOrBuilder
public PolicyTopicEvidenceOrBuilder getEvidencesOrBuilder(int index)
Additional information that explains policy finding (e.g. the brand name for a trademark finding).
repeated .google.ads.googleads.v10.common.PolicyTopicEvidence evidences = 3;- Specified by:
getEvidencesOrBuilderin interfacePolicyTopicEntryOrBuilder
-
getConstraintsList
public java.util.List<PolicyTopicConstraint> getConstraintsList()
Indicates how serving of this resource may be affected (e.g. not serving in a country).
repeated .google.ads.googleads.v10.common.PolicyTopicConstraint constraints = 4;- Specified by:
getConstraintsListin interfacePolicyTopicEntryOrBuilder
-
getConstraintsOrBuilderList
public java.util.List<? extends PolicyTopicConstraintOrBuilder> getConstraintsOrBuilderList()
Indicates how serving of this resource may be affected (e.g. not serving in a country).
repeated .google.ads.googleads.v10.common.PolicyTopicConstraint constraints = 4;- Specified by:
getConstraintsOrBuilderListin interfacePolicyTopicEntryOrBuilder
-
getConstraintsCount
public int getConstraintsCount()
Indicates how serving of this resource may be affected (e.g. not serving in a country).
repeated .google.ads.googleads.v10.common.PolicyTopicConstraint constraints = 4;- Specified by:
getConstraintsCountin interfacePolicyTopicEntryOrBuilder
-
getConstraints
public PolicyTopicConstraint getConstraints(int index)
Indicates how serving of this resource may be affected (e.g. not serving in a country).
repeated .google.ads.googleads.v10.common.PolicyTopicConstraint constraints = 4;- Specified by:
getConstraintsin interfacePolicyTopicEntryOrBuilder
-
getConstraintsOrBuilder
public PolicyTopicConstraintOrBuilder getConstraintsOrBuilder(int index)
Indicates how serving of this resource may be affected (e.g. not serving in a country).
repeated .google.ads.googleads.v10.common.PolicyTopicConstraint constraints = 4;- Specified by:
getConstraintsOrBuilderin interfacePolicyTopicEntryOrBuilder
-
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 PolicyTopicEntry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyTopicEntry parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyTopicEntry parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PolicyTopicEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PolicyTopicEntry parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyTopicEntry parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyTopicEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public PolicyTopicEntry.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PolicyTopicEntry.Builder newBuilder()
-
newBuilder
public static PolicyTopicEntry.Builder newBuilder(PolicyTopicEntry prototype)
-
toBuilder
public PolicyTopicEntry.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PolicyTopicEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PolicyTopicEntry getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PolicyTopicEntry> parser()
-
getParserForType
public com.google.protobuf.Parser<PolicyTopicEntry> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PolicyTopicEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-