Class Example.Builder

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

public static final class Example.Builder extends com.google.protobuf.GeneratedMessage.Builder<Example.Builder> implements ExampleOrBuilder
 A single example to upload or read from the Example Store.
 
Protobuf type google.cloud.aiplatform.v1beta1.Example
  • 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<Example.Builder>
    • clear

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

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

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

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

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

      public Example.Builder mergeFrom(Example other)
    • isInitialized

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

      public Example.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<Example.Builder>
      Throws:
      IOException
    • getExampleTypeCase

      public Example.ExampleTypeCase getExampleTypeCase()
      Specified by:
      getExampleTypeCase in interface ExampleOrBuilder
    • clearExampleType

      public Example.Builder clearExampleType()
    • hasStoredContentsExample

      public boolean hasStoredContentsExample()
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
      Specified by:
      hasStoredContentsExample in interface ExampleOrBuilder
      Returns:
      Whether the storedContentsExample field is set.
    • getStoredContentsExample

      public StoredContentsExample getStoredContentsExample()
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
      Specified by:
      getStoredContentsExample in interface ExampleOrBuilder
      Returns:
      The storedContentsExample.
    • setStoredContentsExample

      public Example.Builder setStoredContentsExample(StoredContentsExample value)
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
    • setStoredContentsExample

      public Example.Builder setStoredContentsExample(StoredContentsExample.Builder builderForValue)
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
    • mergeStoredContentsExample

      public Example.Builder mergeStoredContentsExample(StoredContentsExample value)
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
    • clearStoredContentsExample

      public Example.Builder clearStoredContentsExample()
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
    • getStoredContentsExampleBuilder

      public StoredContentsExample.Builder getStoredContentsExampleBuilder()
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
    • getStoredContentsExampleOrBuilder

      public StoredContentsExampleOrBuilder getStoredContentsExampleOrBuilder()
       An example of chat history and its expected outcome to be used with
       GenerateContent.
       
      .google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;
      Specified by:
      getStoredContentsExampleOrBuilder in interface ExampleOrBuilder
    • getDisplayName

      public String getDisplayName()
       Optional. The display name for Example.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface ExampleOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. The display name for Example.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface ExampleOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Example.Builder setDisplayName(String value)
       Optional. The display name for Example.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Example.Builder clearDisplayName()
       Optional. The display name for Example.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Example.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. The display name for Example.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getExampleId

      public String getExampleId()
       Optional. Immutable. Unique identifier of an example. If not specified when
       upserting new examples, the example_id will be generated.
       
      string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getExampleId in interface ExampleOrBuilder
      Returns:
      The exampleId.
    • getExampleIdBytes

      public com.google.protobuf.ByteString getExampleIdBytes()
       Optional. Immutable. Unique identifier of an example. If not specified when
       upserting new examples, the example_id will be generated.
       
      string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getExampleIdBytes in interface ExampleOrBuilder
      Returns:
      The bytes for exampleId.
    • setExampleId

      public Example.Builder setExampleId(String value)
       Optional. Immutable. Unique identifier of an example. If not specified when
       upserting new examples, the example_id will be generated.
       
      string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The exampleId to set.
      Returns:
      This builder for chaining.
    • clearExampleId

      public Example.Builder clearExampleId()
       Optional. Immutable. Unique identifier of an example. If not specified when
       upserting new examples, the example_id will be generated.
       
      string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setExampleIdBytes

      public Example.Builder setExampleIdBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. Unique identifier of an example. If not specified when
       upserting new examples, the example_id will be generated.
       
      string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for exampleId to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ExampleOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ExampleOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Example.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Example.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Example.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Example.Builder clearCreateTime()
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this Example was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ExampleOrBuilder