Class ContentsExample.Builder

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

public static final class ContentsExample.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder> implements ContentsExampleOrBuilder
 A single example of a conversation with the model.
 
Protobuf type google.cloud.aiplatform.v1beta1.ContentsExample
  • 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<ContentsExample.Builder>
    • clear

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

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

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

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

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

      public ContentsExample.Builder mergeFrom(ContentsExample other)
    • isInitialized

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

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

      public List<Content> getContentsList()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentsList in interface ContentsExampleOrBuilder
    • getContentsCount

      public int getContentsCount()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentsCount in interface ContentsExampleOrBuilder
    • getContents

      public Content getContents(int index)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContents in interface ContentsExampleOrBuilder
    • setContents

      public ContentsExample.Builder setContents(int index, Content value)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • setContents

      public ContentsExample.Builder setContents(int index, Content.Builder builderForValue)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContents

      public ContentsExample.Builder addContents(Content value)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContents

      public ContentsExample.Builder addContents(int index, Content value)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContents

      public ContentsExample.Builder addContents(Content.Builder builderForValue)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContents

      public ContentsExample.Builder addContents(int index, Content.Builder builderForValue)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllContents

      public ContentsExample.Builder addAllContents(Iterable<? extends Content> values)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearContents

      public ContentsExample.Builder clearContents()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeContents

      public ContentsExample.Builder removeContents(int index)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContentsBuilder

      public Content.Builder getContentsBuilder(int index)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContentsOrBuilder

      public ContentOrBuilder getContentsOrBuilder(int index)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentsOrBuilder in interface ContentsExampleOrBuilder
    • getContentsOrBuilderList

      public List<? extends ContentOrBuilder> getContentsOrBuilderList()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentsOrBuilderList in interface ContentsExampleOrBuilder
    • addContentsBuilder

      public Content.Builder addContentsBuilder()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContentsBuilder

      public Content.Builder addContentsBuilder(int index)
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContentsBuilderList

      public List<Content.Builder> getContentsBuilderList()
       Required. The content of the conversation with the model that resulted in
       the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getExpectedContentsList

      public List<ContentsExample.ExpectedContent> getExpectedContentsList()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedContentsList in interface ContentsExampleOrBuilder
    • getExpectedContentsCount

      public int getExpectedContentsCount()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedContentsCount in interface ContentsExampleOrBuilder
    • getExpectedContents

      public ContentsExample.ExpectedContent getExpectedContents(int index)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedContents in interface ContentsExampleOrBuilder
    • setExpectedContents

      public ContentsExample.Builder setExpectedContents(int index, ContentsExample.ExpectedContent value)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • setExpectedContents

      public ContentsExample.Builder setExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExpectedContents

      public ContentsExample.Builder addExpectedContents(ContentsExample.ExpectedContent value)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExpectedContents

      public ContentsExample.Builder addExpectedContents(int index, ContentsExample.ExpectedContent value)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExpectedContents

      public ContentsExample.Builder addExpectedContents(ContentsExample.ExpectedContent.Builder builderForValue)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExpectedContents

      public ContentsExample.Builder addExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllExpectedContents

      public ContentsExample.Builder addAllExpectedContents(Iterable<? extends ContentsExample.ExpectedContent> values)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearExpectedContents

      public ContentsExample.Builder clearExpectedContents()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeExpectedContents

      public ContentsExample.Builder removeExpectedContents(int index)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExpectedContentsBuilder

      public ContentsExample.ExpectedContent.Builder getExpectedContentsBuilder(int index)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExpectedContentsOrBuilder

      public ContentsExample.ExpectedContentOrBuilder getExpectedContentsOrBuilder(int index)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedContentsOrBuilder in interface ContentsExampleOrBuilder
    • getExpectedContentsOrBuilderList

      public List<? extends ContentsExample.ExpectedContentOrBuilder> getExpectedContentsOrBuilderList()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExpectedContentsOrBuilderList in interface ContentsExampleOrBuilder
    • addExpectedContentsBuilder

      public ContentsExample.ExpectedContent.Builder addExpectedContentsBuilder()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • addExpectedContentsBuilder

      public ContentsExample.ExpectedContent.Builder addExpectedContentsBuilder(int index)
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];
    • getExpectedContentsBuilderList

      public List<ContentsExample.ExpectedContent.Builder> getExpectedContentsBuilderList()
       Required. The expected output for the given `contents`. To represent
       multi-step reasoning, this is a repeated field that contains the iterative
       steps of the expected output.
       
      repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];