Class CustomMetadata.Builder

java.lang.Object
com.google.genai.types.CustomMetadata.Builder
Enclosing class:
CustomMetadata

public abstract static class CustomMetadata.Builder extends Object
Builder for CustomMetadata.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • key

      public abstract CustomMetadata.Builder key(String key)
      Setter for key.

      key: Required. The key of the metadata to store.

    • clearKey

      @CanIgnoreReturnValue public CustomMetadata.Builder clearKey()
      Clears the value of key field.
    • numericValue

      public abstract CustomMetadata.Builder numericValue(Float numericValue)
      Setter for numericValue.

      numericValue: The numeric value of the metadata to store.

    • clearNumericValue

      @CanIgnoreReturnValue public CustomMetadata.Builder clearNumericValue()
      Clears the value of numericValue field.
    • stringListValue

      public abstract CustomMetadata.Builder stringListValue(StringList stringListValue)
      Setter for stringListValue.

      stringListValue: The StringList value of the metadata to store.

    • stringListValue

      @CanIgnoreReturnValue public CustomMetadata.Builder stringListValue(StringList.Builder stringListValueBuilder)
      Setter for stringListValue builder.

      stringListValue: The StringList value of the metadata to store.

    • clearStringListValue

      @CanIgnoreReturnValue public CustomMetadata.Builder clearStringListValue()
      Clears the value of stringListValue field.
    • stringValue

      public abstract CustomMetadata.Builder stringValue(String stringValue)
      Setter for stringValue.

      stringValue: The string value of the metadata to store.

    • clearStringValue

      @CanIgnoreReturnValue public CustomMetadata.Builder clearStringValue()
      Clears the value of stringValue field.
    • build

      public abstract CustomMetadata build()