Class KnowledgeGraphAttributeMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KnowledgeGraphAttributeMetadata.Builder>
com.google.ads.googleads.v23.common.KnowledgeGraphAttributeMetadata.Builder
All Implemented Interfaces:
KnowledgeGraphAttributeMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KnowledgeGraphAttributeMetadata

public static final class KnowledgeGraphAttributeMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<KnowledgeGraphAttributeMetadata.Builder> implements KnowledgeGraphAttributeMetadataOrBuilder
 Metadata associated with a Knowledge Graph Entity attribute.
 
Protobuf type google.ads.googleads.v23.common.KnowledgeGraphAttributeMetadata
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KnowledgeGraphAttributeMetadata.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.GeneratedMessage.Builder<KnowledgeGraphAttributeMetadata.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.GeneratedMessage.Builder<KnowledgeGraphAttributeMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public KnowledgeGraphAttributeMetadata.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<KnowledgeGraphAttributeMetadata.Builder>
      Throws:
      IOException
    • getEntityCapabilitiesList

       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Specified by:
      getEntityCapabilitiesList in interface KnowledgeGraphAttributeMetadataOrBuilder
      Returns:
      A list containing the entityCapabilities.
    • getEntityCapabilitiesCount

      public int getEntityCapabilitiesCount()
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Specified by:
      getEntityCapabilitiesCount in interface KnowledgeGraphAttributeMetadataOrBuilder
      Returns:
      The count of entityCapabilities.
    • getEntityCapabilities

       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Specified by:
      getEntityCapabilities in interface KnowledgeGraphAttributeMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityCapabilities at the given index.
    • setEntityCapabilities

       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      index - The index to set the value at.
      value - The entityCapabilities to set.
      Returns:
      This builder for chaining.
    • addEntityCapabilities

       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      value - The entityCapabilities to add.
      Returns:
      This builder for chaining.
    • addAllEntityCapabilities

       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      values - The entityCapabilities to add.
      Returns:
      This builder for chaining.
    • clearEntityCapabilities

      public KnowledgeGraphAttributeMetadata.Builder clearEntityCapabilities()
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Returns:
      This builder for chaining.
    • getEntityCapabilitiesValueList

      public List<Integer> getEntityCapabilitiesValueList()
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Specified by:
      getEntityCapabilitiesValueList in interface KnowledgeGraphAttributeMetadataOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for entityCapabilities.
    • getEntityCapabilitiesValue

      public int getEntityCapabilitiesValue(int index)
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Specified by:
      getEntityCapabilitiesValue in interface KnowledgeGraphAttributeMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of entityCapabilities at the given index.
    • setEntityCapabilitiesValue

      public KnowledgeGraphAttributeMetadata.Builder setEntityCapabilitiesValue(int index, int value)
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for entityCapabilities to set.
      Returns:
      This builder for chaining.
    • addEntityCapabilitiesValue

      public KnowledgeGraphAttributeMetadata.Builder addEntityCapabilitiesValue(int value)
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      value - The enum numeric value on the wire for entityCapabilities to add.
      Returns:
      This builder for chaining.
    • addAllEntityCapabilitiesValue

      public KnowledgeGraphAttributeMetadata.Builder addAllEntityCapabilitiesValue(Iterable<Integer> values)
       The capabilities of the entity used in
       [ContentCreatorInsightsService][google.ads.googleads.v23.services.ContentCreatorInsightsService].
       
      repeated .google.ads.googleads.v23.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capabilities = 1;
      Parameters:
      values - The enum numeric values on the wire for entityCapabilities to add.
      Returns:
      This builder for chaining.
    • getRelatedCategoriesList

      public List<AudienceInsightsAttributeMetadata> getRelatedCategoriesList()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
      Specified by:
      getRelatedCategoriesList in interface KnowledgeGraphAttributeMetadataOrBuilder
    • getRelatedCategoriesCount

      public int getRelatedCategoriesCount()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
      Specified by:
      getRelatedCategoriesCount in interface KnowledgeGraphAttributeMetadataOrBuilder
    • getRelatedCategories

      public AudienceInsightsAttributeMetadata getRelatedCategories(int index)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
      Specified by:
      getRelatedCategories in interface KnowledgeGraphAttributeMetadataOrBuilder
    • setRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder setRelatedCategories(int index, AudienceInsightsAttributeMetadata value)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • setRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder setRelatedCategories(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addRelatedCategories

       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder addRelatedCategories(int index, AudienceInsightsAttributeMetadata value)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addRelatedCategories

       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder addRelatedCategories(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addAllRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder addAllRelatedCategories(Iterable<? extends AudienceInsightsAttributeMetadata> values)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • clearRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder clearRelatedCategories()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • removeRelatedCategories

      public KnowledgeGraphAttributeMetadata.Builder removeRelatedCategories(int index)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • getRelatedCategoriesBuilder

      public AudienceInsightsAttributeMetadata.Builder getRelatedCategoriesBuilder(int index)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • getRelatedCategoriesOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getRelatedCategoriesOrBuilder(int index)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
      Specified by:
      getRelatedCategoriesOrBuilder in interface KnowledgeGraphAttributeMetadataOrBuilder
    • getRelatedCategoriesOrBuilderList

      public List<? extends AudienceInsightsAttributeMetadataOrBuilder> getRelatedCategoriesOrBuilderList()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
      Specified by:
      getRelatedCategoriesOrBuilderList in interface KnowledgeGraphAttributeMetadataOrBuilder
    • addRelatedCategoriesBuilder

      public AudienceInsightsAttributeMetadata.Builder addRelatedCategoriesBuilder()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • addRelatedCategoriesBuilder

      public AudienceInsightsAttributeMetadata.Builder addRelatedCategoriesBuilder(int index)
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;
    • getRelatedCategoriesBuilderList

      public List<AudienceInsightsAttributeMetadata.Builder> getRelatedCategoriesBuilderList()
       A list of CATEGORY attributes related to this entity.
       
      repeated .google.ads.googleads.v23.common.AudienceInsightsAttributeMetadata related_categories = 2;