org.jetbrains.jet.descriptors.serialization
Interface ProtoBuf.TypeOrBuilder

All Superinterfaces:
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.MessageLiteOrBuilder


Method Summary
 ProtoBuf.Type.Argument getArgument(int index)
          repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;
 int getArgumentCount()
          repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;
 java.util.List<ProtoBuf.Type.Argument> getArgumentList()
          repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;
 ProtoBuf.Type.Constructor getConstructor()
          required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;
 int getFlexibleTypeCapabilitiesId()
          optional int32 flexible_type_capabilities_id = 4;
 ProtoBuf.Type getFlexibleUpperBound()
          optional .org.jetbrains.jet.descriptors.serialization.Type flexible_upper_bound = 5;
 boolean getNullable()
          optional bool nullable = 3 [default = false];
 boolean hasConstructor()
          required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;
 boolean hasFlexibleTypeCapabilitiesId()
          optional int32 flexible_type_capabilities_id = 4;
 boolean hasFlexibleUpperBound()
          optional .org.jetbrains.jet.descriptors.serialization.Type flexible_upper_bound = 5;
 boolean hasNullable()
          optional bool nullable = 3 [default = false];
 
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
 

Method Detail

hasConstructor

boolean hasConstructor()
required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;


getConstructor

ProtoBuf.Type.Constructor getConstructor()
required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;


getArgumentList

java.util.List<ProtoBuf.Type.Argument> getArgumentList()
repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;


getArgument

ProtoBuf.Type.Argument getArgument(int index)
repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;


getArgumentCount

int getArgumentCount()
repeated .org.jetbrains.jet.descriptors.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 fields above 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 fields above represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
 


hasFlexibleUpperBound

boolean hasFlexibleUpperBound()
optional .org.jetbrains.jet.descriptors.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.jet.descriptors.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.