Class BrandInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
com.google.ads.googleads.v18.common.BrandInfo.Builder
All Implemented Interfaces:
BrandInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BrandInfo

public static final class BrandInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder> implements BrandInfoOrBuilder
 Represents a Brand Criterion used for targeting based on commercial knowledge
 graph.
 
Protobuf type google.ads.googleads.v18.common.BrandInfo
  • Method Details

    • 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<BrandInfo.Builder>
    • clear

      public BrandInfo.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<BrandInfo.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<BrandInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public BrandInfo.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<BrandInfo.Builder>
    • setField

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

      public BrandInfo.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<BrandInfo.Builder>
    • clearOneof

      public BrandInfo.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<BrandInfo.Builder>
    • setRepeatedField

      public BrandInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
    • addRepeatedField

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

      public BrandInfo.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<BrandInfo.Builder>
    • mergeFrom

      public BrandInfo.Builder mergeFrom(BrandInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
    • mergeFrom

      public BrandInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<BrandInfo.Builder>
      Throws:
      IOException
    • hasDisplayName

      public boolean hasDisplayName()
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDisplayName in interface BrandInfoOrBuilder
      Returns:
      Whether the displayName field is set.
    • getDisplayName

      public String getDisplayName()
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface BrandInfoOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface BrandInfoOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public BrandInfo.Builder setDisplayName(String value)
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public BrandInfo.Builder clearDisplayName()
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public BrandInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. A text representation of a brand.
       
      optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasEntityId

      public boolean hasEntityId()
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Specified by:
      hasEntityId in interface BrandInfoOrBuilder
      Returns:
      Whether the entityId field is set.
    • getEntityId

      public String getEntityId()
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Specified by:
      getEntityId in interface BrandInfoOrBuilder
      Returns:
      The entityId.
    • getEntityIdBytes

      public com.google.protobuf.ByteString getEntityIdBytes()
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Specified by:
      getEntityIdBytes in interface BrandInfoOrBuilder
      Returns:
      The bytes for entityId.
    • setEntityId

      public BrandInfo.Builder setEntityId(String value)
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Parameters:
      value - The entityId to set.
      Returns:
      This builder for chaining.
    • clearEntityId

      public BrandInfo.Builder clearEntityId()
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Returns:
      This builder for chaining.
    • setEntityIdBytes

      public BrandInfo.Builder setEntityIdBytes(com.google.protobuf.ByteString value)
       The Commercial KG MID for the brand.
       
      optional string entity_id = 1;
      Parameters:
      value - The bytes for entityId to set.
      Returns:
      This builder for chaining.
    • hasPrimaryUrl

      public boolean hasPrimaryUrl()
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPrimaryUrl in interface BrandInfoOrBuilder
      Returns:
      Whether the primaryUrl field is set.
    • getPrimaryUrl

      public String getPrimaryUrl()
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryUrl in interface BrandInfoOrBuilder
      Returns:
      The primaryUrl.
    • getPrimaryUrlBytes

      public com.google.protobuf.ByteString getPrimaryUrlBytes()
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryUrlBytes in interface BrandInfoOrBuilder
      Returns:
      The bytes for primaryUrl.
    • setPrimaryUrl

      public BrandInfo.Builder setPrimaryUrl(String value)
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The primaryUrl to set.
      Returns:
      This builder for chaining.
    • clearPrimaryUrl

      public BrandInfo.Builder clearPrimaryUrl()
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPrimaryUrlBytes

      public BrandInfo.Builder setPrimaryUrlBytes(com.google.protobuf.ByteString value)
       Output only. The primary url of a brand.
       
      optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for primaryUrl to set.
      Returns:
      This builder for chaining.
    • hasRejectionReason

      public boolean hasRejectionReason()
       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRejectionReason in interface BrandInfoOrBuilder
      Returns:
      Whether the rejectionReason field is set.
    • getRejectionReasonValue

      public int getRejectionReasonValue()
       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRejectionReasonValue in interface BrandInfoOrBuilder
      Returns:
      The enum numeric value on the wire for rejectionReason.
    • setRejectionReasonValue

      public BrandInfo.Builder setRejectionReasonValue(int value)
       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for rejectionReason to set.
      Returns:
      This builder for chaining.
    • getRejectionReason

       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRejectionReason in interface BrandInfoOrBuilder
      Returns:
      The rejectionReason.
    • setRejectionReason

       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The rejectionReason to set.
      Returns:
      This builder for chaining.
    • clearRejectionReason

      public BrandInfo.Builder clearRejectionReason()
       Output only. The rejection reason when a brand status is REJECTED.
       
      optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStatus in interface BrandInfoOrBuilder
      Returns:
      Whether the status field is set.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BrandInfoOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public BrandInfo.Builder setStatusValue(int value)
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public BrandStateEnum.BrandState getStatus()
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BrandInfoOrBuilder
      Returns:
      The status.
    • setStatus

      public BrandInfo.Builder setStatus(BrandStateEnum.BrandState value)
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public BrandInfo.Builder clearStatus()
       Output only. The status of a brand.
       
      optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final BrandInfo.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<BrandInfo.Builder>
    • mergeUnknownFields

      public final BrandInfo.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<BrandInfo.Builder>