Package com.google.protobuf
Interface GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>
-
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Subinterfaces:
DescriptorProtos.EnumOptionsOrBuilder
,DescriptorProtos.EnumValueOptionsOrBuilder
,DescriptorProtos.ExtensionRangeOptionsOrBuilder
,DescriptorProtos.FeatureSetOrBuilder
,DescriptorProtos.FieldOptionsOrBuilder
,DescriptorProtos.FileOptionsOrBuilder
,DescriptorProtos.MessageOptionsOrBuilder
,DescriptorProtos.MethodOptionsOrBuilder
,DescriptorProtos.OneofOptionsOrBuilder
,DescriptorProtos.ServiceOptionsOrBuilder
- All Known Implementing Classes:
DescriptorProtos.EnumOptions
,DescriptorProtos.EnumOptions.Builder
,DescriptorProtos.EnumValueOptions
,DescriptorProtos.EnumValueOptions.Builder
,DescriptorProtos.ExtensionRangeOptions
,DescriptorProtos.ExtensionRangeOptions.Builder
,DescriptorProtos.FeatureSet
,DescriptorProtos.FeatureSet.Builder
,DescriptorProtos.FieldOptions
,DescriptorProtos.FieldOptions.Builder
,DescriptorProtos.FileOptions
,DescriptorProtos.FileOptions.Builder
,DescriptorProtos.MessageOptions
,DescriptorProtos.MessageOptions.Builder
,DescriptorProtos.MethodOptions
,DescriptorProtos.MethodOptions.Builder
,DescriptorProtos.OneofOptions
,DescriptorProtos.OneofOptions.Builder
,DescriptorProtos.ServiceOptions
,DescriptorProtos.ServiceOptions.Builder
,GeneratedMessageV3.ExtendableBuilder
,GeneratedMessageV3.ExtendableMessage
- Enclosing class:
- GeneratedMessageV3
public static interface GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>> extends MessageOrBuilder
ExtendsMessageOrBuilder
with extension-related functions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Message
getDefaultInstanceForType()
Get an instance of the type with no fields set.<T> T
getExtension(Extension<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.<T> T
getExtension(Extension<MessageT,T> extension)
Get the value of an extension.<T> T
getExtension(ExtensionLite<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.<T> T
getExtension(ExtensionLite<MessageT,T> extension)
Get the value of an extension.<T> T
getExtension(GeneratedMessage.GeneratedExtension<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.<T> T
getExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)
Get the value of an extension.<T> int
getExtensionCount(Extension<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.<T> int
getExtensionCount(ExtensionLite<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.<T> int
getExtensionCount(GeneratedMessage.GeneratedExtension<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.<T> boolean
hasExtension(Extension<MessageT,T> extension)
Check if a singular extension is present.<T> boolean
hasExtension(ExtensionLite<MessageT,T> extension)
Check if a singular extension is present.<T> boolean
hasExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)
Check if a singular extension is present.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDefaultInstanceForType
Message getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilder
Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()
method of generated message classes in that this method is an abstract method of theMessageLite
interface whereasgetDefaultInstance()
is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
hasExtension
<T> boolean hasExtension(ExtensionLite<MessageT,T> extension)
Check if a singular extension is present.
-
getExtensionCount
<T> int getExtensionCount(ExtensionLite<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.
-
getExtension
<T> T getExtension(ExtensionLite<MessageT,T> extension)
Get the value of an extension.
-
getExtension
<T> T getExtension(ExtensionLite<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.
-
hasExtension
<T> boolean hasExtension(Extension<MessageT,T> extension)
Check if a singular extension is present.TODO: handled by ExtensionLite version
-
hasExtension
<T> boolean hasExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)
Check if a singular extension is present.TODO: handled by ExtensionLite version
-
getExtensionCount
<T> int getExtensionCount(Extension<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.TODO: handled by ExtensionLite version
-
getExtensionCount
<T> int getExtensionCount(GeneratedMessage.GeneratedExtension<MessageT,java.util.List<T>> extension)
Get the number of elements in a repeated extension.TODO: handled by ExtensionLite version
-
getExtension
<T> T getExtension(Extension<MessageT,T> extension)
Get the value of an extension.TODO: handled by ExtensionLite version
-
getExtension
<T> T getExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)
Get the value of an extension.TODO: handled by ExtensionLite version
-
getExtension
<T> T getExtension(Extension<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.TODO: handled by ExtensionLite version
-
getExtension
<T> T getExtension(GeneratedMessage.GeneratedExtension<MessageT,java.util.List<T>> extension, int index)
Get one element of a repeated extension.TODO: handled by ExtensionLite version
-
-