Class 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 type google.ads.googleads.v10.common.PolicyViolationKey
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • clear

        public PolicyViolationKey.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • getDefaultInstanceForType

        public PolicyViolationKey getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public PolicyViolationKey build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public PolicyViolationKey buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public PolicyViolationKey.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • setField

        public PolicyViolationKey.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • clearField

        public PolicyViolationKey.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • clearOneof

        public PolicyViolationKey.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • addRepeatedField

        public PolicyViolationKey.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • mergeFrom

        public PolicyViolationKey.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyViolationKey.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasPolicyName in interface PolicyViolationKeyOrBuilder
        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:
        getPolicyName in interface PolicyViolationKeyOrBuilder
        Returns:
        The policyName.
      • getPolicyNameBytes

        public com.google.protobuf.ByteString getPolicyNameBytes()
         Unique ID of the violated policy.
         
        optional string policy_name = 3;
        Specified by:
        getPolicyNameBytes in interface PolicyViolationKeyOrBuilder
        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:
        hasViolatingText in interface PolicyViolationKeyOrBuilder
        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:
        getViolatingText in interface PolicyViolationKeyOrBuilder
        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:
        getViolatingTextBytes in interface PolicyViolationKeyOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>
      • mergeUnknownFields

        public final PolicyViolationKey.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyViolationKey.Builder>