Class ContentMap.Contents.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContentMap.Contents.Builder>
com.google.cloud.aiplatform.v1.ContentMap.Contents.Builder
All Implemented Interfaces:
ContentMap.ContentsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContentMap.Contents

public static final class ContentMap.Contents.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContentMap.Contents.Builder> implements ContentMap.ContentsOrBuilder
 Repeated Content type.
 
Protobuf type google.cloud.aiplatform.v1.ContentMap.Contents
  • 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<ContentMap.Contents.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<ContentMap.Contents.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<ContentMap.Contents.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ContentMap.Contents.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<ContentMap.Contents.Builder>
      Throws:
      IOException
    • getContentsList

      public List<Content> getContentsList()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsList in interface ContentMap.ContentsOrBuilder
    • getContentsCount

      public int getContentsCount()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsCount in interface ContentMap.ContentsOrBuilder
    • getContents

      public Content getContents(int index)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContents in interface ContentMap.ContentsOrBuilder
    • setContents

      public ContentMap.Contents.Builder setContents(int index, Content value)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setContents

      public ContentMap.Contents.Builder setContents(int index, Content.Builder builderForValue)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public ContentMap.Contents.Builder addContents(Content value)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public ContentMap.Contents.Builder addContents(int index, Content value)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public ContentMap.Contents.Builder addContents(Content.Builder builderForValue)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addContents

      public ContentMap.Contents.Builder addContents(int index, Content.Builder builderForValue)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllContents

      public ContentMap.Contents.Builder addAllContents(Iterable<? extends Content> values)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearContents

      public ContentMap.Contents.Builder clearContents()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeContents

      public ContentMap.Contents.Builder removeContents(int index)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilder

      public Content.Builder getContentsBuilder(int index)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsOrBuilder

      public ContentOrBuilder getContentsOrBuilder(int index)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilder in interface ContentMap.ContentsOrBuilder
    • getContentsOrBuilderList

      public List<? extends ContentOrBuilder> getContentsOrBuilderList()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentsOrBuilderList in interface ContentMap.ContentsOrBuilder
    • addContentsBuilder

      public Content.Builder addContentsBuilder()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addContentsBuilder

      public Content.Builder addContentsBuilder(int index)
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getContentsBuilderList

      public List<Content.Builder> getContentsBuilderList()
       Optional. Repeated contents.
       
      repeated .google.cloud.aiplatform.v1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];