Send feedback
Class DisapprovalReason.Builder (0.39.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class DisapprovalReason . Builder extends GeneratedMessageV3 . Builder<DisapprovalReason . Builder > implements DisapprovalReasonOrBuilder
Represents the reason for which Google disapproved the Site.
Protobuf type google.ads.admanager.v1.DisapprovalReason
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 DisapprovalReason . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DisapprovalReason build ()
buildPartial()
public DisapprovalReason buildPartial ()
clear()
public DisapprovalReason . Builder clear ()
Overrides
clearDetails()
public DisapprovalReason . Builder clearDetails ()
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public DisapprovalReason . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DisapprovalReason . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearType()
public DisapprovalReason . Builder clearType ()
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public DisapprovalReason . Builder clone ()
Overrides
getDefaultInstanceForType()
public DisapprovalReason getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDetails()
public String getDetails ()
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The details.
getDetailsBytes()
public ByteString getDetailsBytes ()
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for details.
getType()
public SiteDisapprovalReasonEnum . SiteDisapprovalReason getType ()
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTypeValue()
public int getTypeValue ()
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for type.
hasDetails()
public boolean hasDetails ()
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the details field is set.
hasType()
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the type field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DisapprovalReason other)
public DisapprovalReason . Builder mergeFrom ( DisapprovalReason other )
public DisapprovalReason . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DisapprovalReason . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DisapprovalReason . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setDetails(String value)
public DisapprovalReason . Builder setDetails ( String value )
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
String The details to set.
setDetailsBytes(ByteString value)
public DisapprovalReason . Builder setDetailsBytes ( ByteString value )
Output only. Additional details for the disapproval of the Site.
optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
ByteString The bytes for details to set.
setField(Descriptors.FieldDescriptor field, Object value)
public DisapprovalReason . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DisapprovalReason . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setType(SiteDisapprovalReasonEnum.SiteDisapprovalReason value)
public DisapprovalReason . Builder setType ( SiteDisapprovalReasonEnum . SiteDisapprovalReason value )
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setTypeValue(int value)
public DisapprovalReason . Builder setTypeValue ( int value )
Output only. The type of policy violation found for the Site.
optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
int The enum numeric value on the wire for type to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final DisapprovalReason . 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."],[],[]]