org.jetbrains.kotlin.serialization
Interface ProtoBuf.TypeOrBuilder
- All Superinterfaces:
- com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<ProtoBuf.Type>, com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
- ProtoBuf.Type, ProtoBuf.Type.Builder
- Enclosing class:
- ProtoBuf
public static interface ProtoBuf.TypeOrBuilder
- extends com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<ProtoBuf.Type>
| Methods inherited from interface com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder |
getExtension, getExtension, getExtensionCount, hasExtension |
| Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder |
getDefaultInstanceForType, isInitialized |
hasConstructor
boolean hasConstructor()
required .org.jetbrains.kotlin.serialization.Type.Constructor constructor = 1;
getConstructor
ProtoBuf.Type.Constructor getConstructor()
required .org.jetbrains.kotlin.serialization.Type.Constructor constructor = 1;
getArgumentList
java.util.List<ProtoBuf.Type.Argument> getArgumentList()
repeated .org.jetbrains.kotlin.serialization.Type.Argument argument = 2;
getArgument
ProtoBuf.Type.Argument getArgument(int index)
repeated .org.jetbrains.kotlin.serialization.Type.Argument argument = 2;
getArgumentCount
int getArgumentCount()
repeated .org.jetbrains.kotlin.serialization.Type.Argument argument = 2;
hasNullable
boolean hasNullable()
optional bool nullable = 3 [default = false];
getNullable
boolean getNullable()
optional bool nullable = 3 [default = false];
hasFlexibleTypeCapabilitiesId
boolean hasFlexibleTypeCapabilitiesId()
optional int32 flexible_type_capabilities_id = 4;
Id in the StringTable
If this field is set, the type is flexible.
All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
getFlexibleTypeCapabilitiesId
int getFlexibleTypeCapabilitiesId()
optional int32 flexible_type_capabilities_id = 4;
Id in the StringTable
If this field is set, the type is flexible.
All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
hasFlexibleUpperBound
boolean hasFlexibleUpperBound()
optional .org.jetbrains.kotlin.serialization.Type flexible_upper_bound = 5;
While such an "indirect" encoding helps backwards compatibility with pre-flexible-types versions of this format,
we use it mainly to save space: having a special mandatory tag on each an every type just to have an option
to represent flexible types is too many wasted bytes.
getFlexibleUpperBound
ProtoBuf.Type getFlexibleUpperBound()
optional .org.jetbrains.kotlin.serialization.Type flexible_upper_bound = 5;
While such an "indirect" encoding helps backwards compatibility with pre-flexible-types versions of this format,
we use it mainly to save space: having a special mandatory tag on each an every type just to have an option
to represent flexible types is too many wasted bytes.
hasConstructorClassName
boolean hasConstructorClassName()
optional int32 constructor_class_name = 6;
fqName id
getConstructorClassName
int getConstructorClassName()
optional int32 constructor_class_name = 6;
fqName id
hasConstructorTypeParameter
boolean hasConstructorTypeParameter()
optional int32 constructor_type_parameter = 7;
type parameter id
getConstructorTypeParameter
int getConstructorTypeParameter()
optional int32 constructor_type_parameter = 7;
type parameter id