Class RagContexts.Builder

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

public static final class RagContexts.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagContexts.Builder> implements RagContextsOrBuilder
 Relevant contexts for one query.
 
Protobuf type google.cloud.aiplatform.v1.RagContexts
  • 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<RagContexts.Builder>
    • clear

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

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

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

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

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

      public RagContexts.Builder mergeFrom(RagContexts other)
    • isInitialized

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

      public RagContexts.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<RagContexts.Builder>
      Throws:
      IOException
    • getContextsList

      public List<RagContexts.Context> getContextsList()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
      Specified by:
      getContextsList in interface RagContextsOrBuilder
    • getContextsCount

      public int getContextsCount()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
      Specified by:
      getContextsCount in interface RagContextsOrBuilder
    • getContexts

      public RagContexts.Context getContexts(int index)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
      Specified by:
      getContexts in interface RagContextsOrBuilder
    • setContexts

      public RagContexts.Builder setContexts(int index, RagContexts.Context value)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • setContexts

      public RagContexts.Builder setContexts(int index, RagContexts.Context.Builder builderForValue)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addContexts

      public RagContexts.Builder addContexts(RagContexts.Context value)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addContexts

      public RagContexts.Builder addContexts(int index, RagContexts.Context value)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addContexts

      public RagContexts.Builder addContexts(RagContexts.Context.Builder builderForValue)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addContexts

      public RagContexts.Builder addContexts(int index, RagContexts.Context.Builder builderForValue)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addAllContexts

      public RagContexts.Builder addAllContexts(Iterable<? extends RagContexts.Context> values)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • clearContexts

      public RagContexts.Builder clearContexts()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • removeContexts

      public RagContexts.Builder removeContexts(int index)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • getContextsBuilder

      public RagContexts.Context.Builder getContextsBuilder(int index)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • getContextsOrBuilder

      public RagContexts.ContextOrBuilder getContextsOrBuilder(int index)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
      Specified by:
      getContextsOrBuilder in interface RagContextsOrBuilder
    • getContextsOrBuilderList

      public List<? extends RagContexts.ContextOrBuilder> getContextsOrBuilderList()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
      Specified by:
      getContextsOrBuilderList in interface RagContextsOrBuilder
    • addContextsBuilder

      public RagContexts.Context.Builder addContextsBuilder()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • addContextsBuilder

      public RagContexts.Context.Builder addContextsBuilder(int index)
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    • getContextsBuilderList

      public List<RagContexts.Context.Builder> getContextsBuilderList()
       All its contexts.
       
      repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;