Class Value.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder , com.google.protobuf.MessageLite.Builder , com.google.protobuf.MessageLiteOrBuilder , com.google.protobuf.MessageOrBuilder , java.lang.Cloneable , net.jumpaku.exprml.pb.exprml.v1.ValueOrBuilder

    
    public final class Value.Builder
    extends GeneratedMessage.Builder<BuilderT> implements ValueOrBuilder
                        
    JSON value.
    
    Protobuf type exprml.v1.Value
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Descriptors.Descriptor getDescriptor()
      Value.Builder clear()
      Descriptors.Descriptor getDescriptorForType()
      Value getDefaultInstanceForType()
      Value build()
      Value buildPartial()
      Value.Builder mergeFrom(Message other)
      Value.Builder mergeFrom(Value other)
      final boolean isInitialized()
      Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
      int getTypeValue()
      Type of the value.
      
      .exprml.v1.Value.Type type = 1 [json_name = "type"];
      Value.Builder setTypeValue(int value)
      Type of the value.
      
      .exprml.v1.Value.Type type = 1 [json_name = "type"];
      Value.Type getType()
      Type of the value.
      
      .exprml.v1.Value.Type type = 1 [json_name = "type"];
      Value.Builder setType(Value.Type value)
      Type of the value.
      
      .exprml.v1.Value.Type type = 1 [json_name = "type"];
      Value.Builder clearType()
      Type of the value.
      
      .exprml.v1.Value.Type type = 1 [json_name = "type"];
      boolean getBool()
      bool has a boolean value if the type is TYPE_BOOL.
      
      bool bool = 2 [json_name = "bool"];
      Value.Builder setBool(boolean value)
      bool has a boolean value if the type is TYPE_BOOL.
      
      bool bool = 2 [json_name = "bool"];
      Value.Builder clearBool()
      bool has a boolean value if the type is TYPE_BOOL.
      
      bool bool = 2 [json_name = "bool"];
      double getNum()
      num has a number value if the type is TYPE_NUM.
      
      double num = 3 [json_name = "num"];
      Value.Builder setNum(double value)
      num has a number value if the type is TYPE_NUM.
      
      double num = 3 [json_name = "num"];
      Value.Builder clearNum()
      num has a number value if the type is TYPE_NUM.
      
      double num = 3 [json_name = "num"];
      String getStr()
      str has a string value if the type is TYPE_STR.
      
      string str = 4 [json_name = "str"];
      ByteString getStrBytes()
      str has a string value if the type is TYPE_STR.
      
      string str = 4 [json_name = "str"];
      Value.Builder setStr(String value)
      str has a string value if the type is TYPE_STR.
      
      string str = 4 [json_name = "str"];
      Value.Builder clearStr()
      str has a string value if the type is TYPE_STR.
      
      string str = 4 [json_name = "str"];
      Value.Builder setStrBytes(ByteString value)
      str has a string value if the type is TYPE_STR.
      
      string str = 4 [json_name = "str"];
      List<Value> getArrList()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      int getArrCount()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value getArr(int index)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder setArr(int index, Value value)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder setArr(int index, Value.Builder builderForValue)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArr(Value value)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArr(int index, Value value)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArr(Value.Builder builderForValue)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArr(int index, Value.Builder builderForValue)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addAllArr(Iterable<out Value> values)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder clearArr()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder removeArr(int index)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder getArrBuilder(int index)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      ValueOrBuilder getArrOrBuilder(int index)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      List<out ValueOrBuilder> getArrOrBuilderList()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArrBuilder()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      Value.Builder addArrBuilder(int index)
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      List<Value.Builder> getArrBuilderList()
      arr has an array value if the type is TYPE_ARR.
      
      repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      int getObjCount()
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      boolean containsObj(String key)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Map<String, Value> getObj() Use getObjMap instead.
      Map<String, Value> getObjMap()
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Value getObjOrDefault(String key, Value defaultValue)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Value getObjOrThrow(String key)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Value.Builder clearObj()
      Value.Builder removeObj(String key)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Map<String, Value> getMutableObj() Use alternate mutation accessors instead.
      Value.Builder putObj(String key, Value value)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Value.Builder putAllObj(Map<String, Value> values)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      Value.Builder putObjBuilderIfAbsent(String key)
      obj has an object value if the type is TYPE_OBJ.
      
      map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, mergeUnknownFields, newBuilderForField, setField, setRepeatedField, setUnknownFields
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        clear, clearOneof, clone, findInitializationErrors, getInitializationErrorString, mergeUnknownFields, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        mergeDelimitedFrom
      • Methods inherited from class com.google.protobuf.Message.Builder

        addRepeatedField, clear, clearField, clearOneof, clone, mergeFrom, mergeUnknownFields, setField, setRepeatedField, setUnknownFields
      • Methods inherited from class com.google.protobuf.MessageLite.Builder

        build, buildPartial
      • Methods inherited from class com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDescriptor

         final static Descriptors.Descriptor getDescriptor()
      • getTypeValue

         int getTypeValue()
        Type of the value.
        
        .exprml.v1.Value.Type type = 1 [json_name = "type"];
        Returns:

        The enum numeric value on the wire for type.

      • setTypeValue

         Value.Builder setTypeValue(int value)
        Type of the value.
        
        .exprml.v1.Value.Type type = 1 [json_name = "type"];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:

        This builder for chaining.

      • getType

         Value.Type getType()
        Type of the value.
        
        .exprml.v1.Value.Type type = 1 [json_name = "type"];
        Returns:

        The type.

      • setType

         Value.Builder setType(Value.Type value)
        Type of the value.
        
        .exprml.v1.Value.Type type = 1 [json_name = "type"];
        Parameters:
        value - The type to set.
        Returns:

        This builder for chaining.

      • clearType

         Value.Builder clearType()
        Type of the value.
        
        .exprml.v1.Value.Type type = 1 [json_name = "type"];
        Returns:

        This builder for chaining.

      • getBool

         boolean getBool()
        bool has a boolean value if the type is TYPE_BOOL.
        
        bool bool = 2 [json_name = "bool"];
        Returns:

        The bool.

      • setBool

         Value.Builder setBool(boolean value)
        bool has a boolean value if the type is TYPE_BOOL.
        
        bool bool = 2 [json_name = "bool"];
        Parameters:
        value - The bool to set.
        Returns:

        This builder for chaining.

      • clearBool

         Value.Builder clearBool()
        bool has a boolean value if the type is TYPE_BOOL.
        
        bool bool = 2 [json_name = "bool"];
        Returns:

        This builder for chaining.

      • getNum

         double getNum()
        num has a number value if the type is TYPE_NUM.
        
        double num = 3 [json_name = "num"];
        Returns:

        The num.

      • setNum

         Value.Builder setNum(double value)
        num has a number value if the type is TYPE_NUM.
        
        double num = 3 [json_name = "num"];
        Parameters:
        value - The num to set.
        Returns:

        This builder for chaining.

      • clearNum

         Value.Builder clearNum()
        num has a number value if the type is TYPE_NUM.
        
        double num = 3 [json_name = "num"];
        Returns:

        This builder for chaining.

      • getStr

         String getStr()
        str has a string value if the type is TYPE_STR.
        
        string str = 4 [json_name = "str"];
        Returns:

        The str.

      • getStrBytes

         ByteString getStrBytes()
        str has a string value if the type is TYPE_STR.
        
        string str = 4 [json_name = "str"];
        Returns:

        The bytes for str.

      • setStr

         Value.Builder setStr(String value)
        str has a string value if the type is TYPE_STR.
        
        string str = 4 [json_name = "str"];
        Parameters:
        value - The str to set.
        Returns:

        This builder for chaining.

      • clearStr

         Value.Builder clearStr()
        str has a string value if the type is TYPE_STR.
        
        string str = 4 [json_name = "str"];
        Returns:

        This builder for chaining.

      • setStrBytes

         Value.Builder setStrBytes(ByteString value)
        str has a string value if the type is TYPE_STR.
        
        string str = 4 [json_name = "str"];
        Parameters:
        value - The bytes for str to set.
        Returns:

        This builder for chaining.

      • getArrList

         List<Value> getArrList()
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • getArrCount

         int getArrCount()
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • getArr

         Value getArr(int index)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • setArr

         Value.Builder setArr(int index, Value value)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • setArr

         Value.Builder setArr(int index, Value.Builder builderForValue)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArr

         Value.Builder addArr(Value value)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArr

         Value.Builder addArr(int index, Value value)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArr

         Value.Builder addArr(Value.Builder builderForValue)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArr

         Value.Builder addArr(int index, Value.Builder builderForValue)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • clearArr

         Value.Builder clearArr()
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • removeArr

         Value.Builder removeArr(int index)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • getArrBuilder

         Value.Builder getArrBuilder(int index)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • getArrOrBuilder

         ValueOrBuilder getArrOrBuilder(int index)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArrBuilder

         Value.Builder addArrBuilder()
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • addArrBuilder

         Value.Builder addArrBuilder(int index)
        arr has an array value if the type is TYPE_ARR.
        
        repeated .exprml.v1.Value arr = 5 [json_name = "arr"];
      • getObjCount

         int getObjCount()
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • containsObj

         boolean containsObj(String key)
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • getObjMap

         Map<String, Value> getObjMap()
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • getObjOrDefault

         Value getObjOrDefault(String key, Value defaultValue)
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • getObjOrThrow

         Value getObjOrThrow(String key)
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • removeObj

         Value.Builder removeObj(String key)
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];
      • putObj

         Value.Builder putObj(String key, Value value)
        obj has an object value if the type is TYPE_OBJ.
        
        map<string, .exprml.v1.Value> obj = 6 [json_name = "obj"];