Class PolicyViolationKey.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
- com.google.ads.googleads.v10.common.PolicyViolationKey.Builder
-
- All Implemented Interfaces:
PolicyViolationKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- PolicyViolationKey
public static final class PolicyViolationKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder> implements PolicyViolationKeyOrBuilder
Key of the violation. The key is used for referring to a violation when filing an exemption request.
Protobuf typegoogle.ads.googleads.v10.common.PolicyViolationKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyViolationKey.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PolicyViolationKeybuild()PolicyViolationKeybuildPartial()PolicyViolationKey.Builderclear()PolicyViolationKey.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PolicyViolationKey.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PolicyViolationKey.BuilderclearPolicyName()Unique ID of the violated policy.PolicyViolationKey.BuilderclearViolatingText()The text that violates the policy if specified.PolicyViolationKey.Builderclone()PolicyViolationKeygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetPolicyName()Unique ID of the violated policy.com.google.protobuf.ByteStringgetPolicyNameBytes()Unique ID of the violated policy.java.lang.StringgetViolatingText()The text that violates the policy if specified.com.google.protobuf.ByteStringgetViolatingTextBytes()The text that violates the policy if specified.booleanhasPolicyName()Unique ID of the violated policy.booleanhasViolatingText()The text that violates the policy if specified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PolicyViolationKey.BuildermergeFrom(PolicyViolationKey other)PolicyViolationKey.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PolicyViolationKey.BuildermergeFrom(com.google.protobuf.Message other)PolicyViolationKey.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PolicyViolationKey.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PolicyViolationKey.BuildersetPolicyName(java.lang.String value)Unique ID of the violated policy.PolicyViolationKey.BuildersetPolicyNameBytes(com.google.protobuf.ByteString value)Unique ID of the violated policy.PolicyViolationKey.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)PolicyViolationKey.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PolicyViolationKey.BuildersetViolatingText(java.lang.String value)The text that violates the policy if specified.PolicyViolationKey.BuildersetViolatingTextBytes(com.google.protobuf.ByteString value)The text that violates the policy if specified.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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<PolicyViolationKey.Builder>
-
clear
public PolicyViolationKey.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<PolicyViolationKey.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<PolicyViolationKey.Builder>
-
getDefaultInstanceForType
public PolicyViolationKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PolicyViolationKey build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PolicyViolationKey buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PolicyViolationKey.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<PolicyViolationKey.Builder>
-
setField
public PolicyViolationKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
clearField
public PolicyViolationKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
clearOneof
public PolicyViolationKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
setRepeatedField
public PolicyViolationKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
addRepeatedField
public PolicyViolationKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
mergeFrom
public PolicyViolationKey.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyViolationKey.Builder>
-
mergeFrom
public PolicyViolationKey.Builder mergeFrom(PolicyViolationKey other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
mergeFrom
public PolicyViolationKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyViolationKey.Builder>- Throws:
java.io.IOException
-
hasPolicyName
public boolean hasPolicyName()
Unique ID of the violated policy.
optional string policy_name = 3;- Specified by:
hasPolicyNamein interfacePolicyViolationKeyOrBuilder- Returns:
- Whether the policyName field is set.
-
getPolicyName
public java.lang.String getPolicyName()
Unique ID of the violated policy.
optional string policy_name = 3;- Specified by:
getPolicyNamein interfacePolicyViolationKeyOrBuilder- Returns:
- The policyName.
-
getPolicyNameBytes
public com.google.protobuf.ByteString getPolicyNameBytes()
Unique ID of the violated policy.
optional string policy_name = 3;- Specified by:
getPolicyNameBytesin interfacePolicyViolationKeyOrBuilder- Returns:
- The bytes for policyName.
-
setPolicyName
public PolicyViolationKey.Builder setPolicyName(java.lang.String value)
Unique ID of the violated policy.
optional string policy_name = 3;- Parameters:
value- The policyName to set.- Returns:
- This builder for chaining.
-
clearPolicyName
public PolicyViolationKey.Builder clearPolicyName()
Unique ID of the violated policy.
optional string policy_name = 3;- Returns:
- This builder for chaining.
-
setPolicyNameBytes
public PolicyViolationKey.Builder setPolicyNameBytes(com.google.protobuf.ByteString value)
Unique ID of the violated policy.
optional string policy_name = 3;- Parameters:
value- The bytes for policyName to set.- Returns:
- This builder for chaining.
-
hasViolatingText
public boolean hasViolatingText()
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Specified by:
hasViolatingTextin interfacePolicyViolationKeyOrBuilder- Returns:
- Whether the violatingText field is set.
-
getViolatingText
public java.lang.String getViolatingText()
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Specified by:
getViolatingTextin interfacePolicyViolationKeyOrBuilder- Returns:
- The violatingText.
-
getViolatingTextBytes
public com.google.protobuf.ByteString getViolatingTextBytes()
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Specified by:
getViolatingTextBytesin interfacePolicyViolationKeyOrBuilder- Returns:
- The bytes for violatingText.
-
setViolatingText
public PolicyViolationKey.Builder setViolatingText(java.lang.String value)
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Parameters:
value- The violatingText to set.- Returns:
- This builder for chaining.
-
clearViolatingText
public PolicyViolationKey.Builder clearViolatingText()
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Returns:
- This builder for chaining.
-
setViolatingTextBytes
public PolicyViolationKey.Builder setViolatingTextBytes(com.google.protobuf.ByteString value)
The text that violates the policy if specified. Otherwise, refers to the policy in general (e.g., when requesting to be exempt from the whole policy). If not specified for criterion exemptions, the whole policy is implied. Must be specified for ad exemptions.
optional string violating_text = 4;- Parameters:
value- The bytes for violatingText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PolicyViolationKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
mergeUnknownFields
public final PolicyViolationKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
-
-