Class ContentMap.Builder

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

public static final class ContentMap.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContentMap.Builder> implements ContentMapOrBuilder
 Map of placeholder in metric prompt template to contents of model input.
 
Protobuf type google.cloud.aiplatform.v1.ContentMap
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ContentMap.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ContentMap.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ContentMap.Builder>
    • clear

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

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

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

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

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

      public ContentMap.Builder mergeFrom(ContentMap other)
    • isInitialized

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

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

      public int getValuesCount()
      Description copied from interface: ContentMapOrBuilder
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesCount in interface ContentMapOrBuilder
    • containsValues

      public boolean containsValues(String key)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsValues in interface ContentMapOrBuilder
    • getValues

      Deprecated.
      Use getValuesMap() instead.
      Specified by:
      getValues in interface ContentMapOrBuilder
    • getValuesMap

      public Map<String,ContentMap.Contents> getValuesMap()
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesMap in interface ContentMapOrBuilder
    • getValuesOrDefault

      public ContentMap.Contents getValuesOrDefault(String key, ContentMap.Contents defaultValue)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesOrDefault in interface ContentMapOrBuilder
    • getValuesOrThrow

      public ContentMap.Contents getValuesOrThrow(String key)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesOrThrow in interface ContentMapOrBuilder
    • clearValues

      public ContentMap.Builder clearValues()
    • removeValues

      public ContentMap.Builder removeValues(String key)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableValues

      @Deprecated public Map<String,ContentMap.Contents> getMutableValues()
      Deprecated.
      Use alternate mutation accessors instead.
    • putValues

      public ContentMap.Builder putValues(String key, ContentMap.Contents value)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putAllValues

      public ContentMap.Builder putAllValues(Map<String,ContentMap.Contents> values)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putValuesBuilderIfAbsent

      public ContentMap.Contents.Builder putValuesBuilderIfAbsent(String key)
       Optional. Map of placeholder to contents.
       
      map<string, .google.cloud.aiplatform.v1.ContentMap.Contents> values = 1 [(.google.api.field_behavior) = OPTIONAL];