Package com.google.api.expr.v1beta1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTypeParams
(Iterable<? extends DeclType> values) An ordered list of type parameters, e.g.addTypeParams
(int index, DeclType value) An ordered list of type parameters, e.g.addTypeParams
(int index, DeclType.Builder builderForValue) An ordered list of type parameters, e.g.addTypeParams
(DeclType value) An ordered list of type parameters, e.g.addTypeParams
(DeclType.Builder builderForValue) An ordered list of type parameters, e.g.clearId()
The expression id of the declared type, if applicable.The type name, e.g.An ordered list of type parameters, e.g.int
getId()
The expression id of the declared type, if applicable.getType()
The type name, e.g.com.google.protobuf.ByteString
The type name, e.g.getTypeParams
(int index) An ordered list of type parameters, e.g.int
An ordered list of type parameters, e.g.An ordered list of type parameters, e.g.removeTypeParams
(int index) An ordered list of type parameters, e.g.setId
(int value) The expression id of the declared type, if applicable.The type name, e.g.setTypeBytes
(com.google.protobuf.ByteString value) The type name, e.g.setTypeParams
(int index, DeclType value) An ordered list of type parameters, e.g.setTypeParams
(int index, DeclType.Builder builderForValue) An ordered list of type parameters, e.g.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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 interfaceDeclTypeOrBuilder
- Returns:
- The id.
-
setId
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
The expression id of the declared type, if applicable.
int32 id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
getType
The type name, e.g. 'int', 'my.type.Type' or 'T'
string type = 2 [json_name = "type"];
- Specified by:
getType
in interfaceDeclTypeOrBuilder
- 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 interfaceDeclTypeOrBuilder
- Returns:
- The bytes for type.
-
setType
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
The type name, e.g. 'int', 'my.type.Type' or 'T'
string type = 2 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setTypeBytes
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
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 interfaceDeclTypeOrBuilder
-
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 interfaceDeclTypeOrBuilder
-
getTypeParams
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 interfaceDeclTypeOrBuilder
-
setTypeParams
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
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
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
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
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
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
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
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
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"];
-