Class DeclType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DeclType,DeclType.Builder>
com.google.api.expr.v1beta1.DeclType.Builder
All Implemented Interfaces:
DeclTypeOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
DeclType

public static final class DeclType.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<DeclType,DeclType.Builder> implements DeclTypeOrBuilder
 The declared type of a variable.

 Extends runtime type values with extra information used for type checking
 and dispatching.
 
Protobuf type google.api.expr.v1beta1.DeclType
  • Method Details

    • getId

      public int getId()
       The expression id of the declared type, if applicable.
       
      int32 id = 1 [json_name = "id"];
      Specified by:
      getId in interface DeclTypeOrBuilder
      Returns:
      The id.
    • setId

      public DeclType.Builder setId(int value)
       The expression id of the declared type, if applicable.
       
      int32 id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public DeclType.Builder clearId()
       The expression id of the declared type, if applicable.
       
      int32 id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       The type name, e.g. 'int', 'my.type.Type' or 'T'
       
      string type = 2 [json_name = "type"];
      Specified by:
      getType in interface DeclTypeOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type name, e.g. 'int', 'my.type.Type' or 'T'
       
      string type = 2 [json_name = "type"];
      Specified by:
      getTypeBytes in interface DeclTypeOrBuilder
      Returns:
      The bytes for type.
    • setType

      public DeclType.Builder setType(String value)
       The type name, e.g. 'int', 'my.type.Type' or 'T'
       
      string type = 2 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public DeclType.Builder clearType()
       The type name, e.g. 'int', 'my.type.Type' or 'T'
       
      string type = 2 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public DeclType.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type name, e.g. 'int', 'my.type.Type' or 'T'
       
      string type = 2 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getTypeParamsList

      public List<DeclType> getTypeParamsList()
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
      Specified by:
      getTypeParamsList in interface DeclTypeOrBuilder
    • getTypeParamsCount

      public int getTypeParamsCount()
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
      Specified by:
      getTypeParamsCount in interface DeclTypeOrBuilder
    • getTypeParams

      public DeclType getTypeParams(int index)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
      Specified by:
      getTypeParams in interface DeclTypeOrBuilder
    • setTypeParams

      public DeclType.Builder setTypeParams(int index, DeclType value)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • setTypeParams

      public DeclType.Builder setTypeParams(int index, DeclType.Builder builderForValue)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • addTypeParams

      public DeclType.Builder addTypeParams(DeclType value)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • addTypeParams

      public DeclType.Builder addTypeParams(int index, DeclType value)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • addTypeParams

      public DeclType.Builder addTypeParams(DeclType.Builder builderForValue)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • addTypeParams

      public DeclType.Builder addTypeParams(int index, DeclType.Builder builderForValue)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • addAllTypeParams

      public DeclType.Builder addAllTypeParams(Iterable<? extends DeclType> values)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • clearTypeParams

      public DeclType.Builder clearTypeParams()
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
    • removeTypeParams

      public DeclType.Builder removeTypeParams(int index)
       An ordered list of type parameters, e.g. `<string, int>`.
       Only applies to a subset of types, e.g. `map`, `list`.
       
      repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];