Class FeatureMap.FloatList.Builder

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

public static final class FeatureMap.FloatList.Builder extends com.google.protobuf.GeneratedMessage.Builder<FeatureMap.FloatList.Builder> implements FeatureMap.FloatListOrBuilder
 A list of float features.
 
Protobuf type google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllValue(Iterable<? extends Float> values)
    Float feature value.
    addValue(float value)
    Float feature value.
     
     
     
    Float feature value.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    float
    getValue(int index)
    Float feature value.
    int
    Float feature value.
    Float feature value.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setValue(int index, float value)
    Float feature value.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<FeatureMap.FloatList.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<FeatureMap.FloatList.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<FeatureMap.FloatList.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public FeatureMap.FloatList.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<FeatureMap.FloatList.Builder>
      Throws:
      IOException
    • getValueList

      public List<Float> getValueList()
       Float feature value.
       
      repeated float value = 1;
      Specified by:
      getValueList in interface FeatureMap.FloatListOrBuilder
      Returns:
      A list containing the value.
    • getValueCount

      public int getValueCount()
       Float feature value.
       
      repeated float value = 1;
      Specified by:
      getValueCount in interface FeatureMap.FloatListOrBuilder
      Returns:
      The count of value.
    • getValue

      public float getValue(int index)
       Float feature value.
       
      repeated float value = 1;
      Specified by:
      getValue in interface FeatureMap.FloatListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The value at the given index.
    • setValue

      public FeatureMap.FloatList.Builder setValue(int index, float value)
       Float feature value.
       
      repeated float value = 1;
      Parameters:
      index - The index to set the value at.
      value - The value to set.
      Returns:
      This builder for chaining.
    • addValue

      public FeatureMap.FloatList.Builder addValue(float value)
       Float feature value.
       
      repeated float value = 1;
      Parameters:
      value - The value to add.
      Returns:
      This builder for chaining.
    • addAllValue

      public FeatureMap.FloatList.Builder addAllValue(Iterable<? extends Float> values)
       Float feature value.
       
      repeated float value = 1;
      Parameters:
      values - The value to add.
      Returns:
      This builder for chaining.
    • clearValue

      public FeatureMap.FloatList.Builder clearValue()
       Float feature value.
       
      repeated float value = 1;
      Returns:
      This builder for chaining.