Class BrandSuggestion.Builder

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

public static final class BrandSuggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BrandSuggestion.Builder> implements BrandSuggestionOrBuilder
 Information of brand suggestion.
 
Protobuf type google.ads.googleads.v18.services.BrandSuggestion
  • 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<BrandSuggestion.Builder>
    • clear

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

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

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

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

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

      public BrandSuggestion.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<BrandSuggestion.Builder>
    • clearField

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

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

      public BrandSuggestion.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<BrandSuggestion.Builder>
    • addRepeatedField

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

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

      public BrandSuggestion.Builder mergeFrom(BrandSuggestion other)
    • isInitialized

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

      public BrandSuggestion.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<BrandSuggestion.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Id for the brand. It would be CKG MID for verified/global scoped brands.
       
      string id = 1;
      Specified by:
      getId in interface BrandSuggestionOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Id for the brand. It would be CKG MID for verified/global scoped brands.
       
      string id = 1;
      Specified by:
      getIdBytes in interface BrandSuggestionOrBuilder
      Returns:
      The bytes for id.
    • setId

      public BrandSuggestion.Builder setId(String value)
       Id for the brand. It would be CKG MID for verified/global scoped brands.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public BrandSuggestion.Builder clearId()
       Id for the brand. It would be CKG MID for verified/global scoped brands.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public BrandSuggestion.Builder setIdBytes(com.google.protobuf.ByteString value)
       Id for the brand. It would be CKG MID for verified/global scoped brands.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Name of the brand.
       
      string name = 2;
      Specified by:
      getName in interface BrandSuggestionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the brand.
       
      string name = 2;
      Specified by:
      getNameBytes in interface BrandSuggestionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BrandSuggestion.Builder setName(String value)
       Name of the brand.
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BrandSuggestion.Builder clearName()
       Name of the brand.
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BrandSuggestion.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the brand.
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUrlsList

      public com.google.protobuf.ProtocolStringList getUrlsList()
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Specified by:
      getUrlsList in interface BrandSuggestionOrBuilder
      Returns:
      A list containing the urls.
    • getUrlsCount

      public int getUrlsCount()
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Specified by:
      getUrlsCount in interface BrandSuggestionOrBuilder
      Returns:
      The count of urls.
    • getUrls

      public String getUrls(int index)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Specified by:
      getUrls in interface BrandSuggestionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The urls at the given index.
    • getUrlsBytes

      public com.google.protobuf.ByteString getUrlsBytes(int index)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Specified by:
      getUrlsBytes in interface BrandSuggestionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the urls at the given index.
    • setUrls

      public BrandSuggestion.Builder setUrls(int index, String value)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Parameters:
      index - The index to set the value at.
      value - The urls to set.
      Returns:
      This builder for chaining.
    • addUrls

      public BrandSuggestion.Builder addUrls(String value)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Parameters:
      value - The urls to add.
      Returns:
      This builder for chaining.
    • addAllUrls

      public BrandSuggestion.Builder addAllUrls(Iterable<String> values)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Parameters:
      values - The urls to add.
      Returns:
      This builder for chaining.
    • clearUrls

      public BrandSuggestion.Builder clearUrls()
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Returns:
      This builder for chaining.
    • addUrlsBytes

      public BrandSuggestion.Builder addUrlsBytes(com.google.protobuf.ByteString value)
       Urls which uniquely identify the brand.
       
      repeated string urls = 3;
      Parameters:
      value - The bytes of the urls to add.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Current state of the brand.
       
      .google.ads.googleads.v18.enums.BrandStateEnum.BrandState state = 4;
      Specified by:
      getStateValue in interface BrandSuggestionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public BrandSuggestion.Builder setStateValue(int value)
       Current state of the brand.
       
      .google.ads.googleads.v18.enums.BrandStateEnum.BrandState state = 4;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public BrandStateEnum.BrandState getState()
       Current state of the brand.
       
      .google.ads.googleads.v18.enums.BrandStateEnum.BrandState state = 4;
      Specified by:
      getState in interface BrandSuggestionOrBuilder
      Returns:
      The state.
    • setState

       Current state of the brand.
       
      .google.ads.googleads.v18.enums.BrandStateEnum.BrandState state = 4;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public BrandSuggestion.Builder clearState()
       Current state of the brand.
       
      .google.ads.googleads.v18.enums.BrandStateEnum.BrandState state = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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