public static final class Protos.Extension extends com.google.protobuf.GeneratedMessage implements Protos.ExtensionOrBuilder
wallet.Extension
An extension to the wallet
| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.Extension.Builder
Protobuf type
wallet.Extension |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MANDATORY_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.Extension> |
PARSER |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getData()
required bytes data = 2; |
static Protos.Extension |
getDefaultInstance() |
Protos.Extension |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
required string id = 1; |
com.google.protobuf.ByteString |
getIdBytes()
required string id = 1; |
boolean |
getMandatory()
required bool mandatory = 3; |
com.google.protobuf.Parser<Protos.Extension> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasData()
required bytes data = 2; |
boolean |
hasId()
required string id = 1; |
boolean |
hasMandatory()
required bool mandatory = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Extension.Builder |
newBuilder() |
static Protos.Extension.Builder |
newBuilder(Protos.Extension prototype) |
Protos.Extension.Builder |
newBuilderForType() |
protected Protos.Extension.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Protos.Extension |
parseDelimitedFrom(InputStream input) |
static Protos.Extension |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Extension |
parseFrom(byte[] data) |
static Protos.Extension |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Extension |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Extension |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Extension |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Extension |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Extension |
parseFrom(InputStream input) |
static Protos.Extension |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Extension.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<Protos.Extension> PARSER
public static final int ID_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int MANDATORY_FIELD_NUMBER
public static Protos.Extension getDefaultInstance()
public Protos.Extension getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.Extension> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasId()
required string id = 1;
like org.whatever.foo.bar
hasId in interface Protos.ExtensionOrBuilderpublic String getId()
required string id = 1;
like org.whatever.foo.bar
getId in interface Protos.ExtensionOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
required string id = 1;
like org.whatever.foo.bar
getIdBytes in interface Protos.ExtensionOrBuilderpublic boolean hasData()
required bytes data = 2;hasData in interface Protos.ExtensionOrBuilderpublic com.google.protobuf.ByteString getData()
required bytes data = 2;getData in interface Protos.ExtensionOrBuilderpublic boolean hasMandatory()
required bool mandatory = 3;
If we do not understand a mandatory extension, abort to prevent data loss. For example, this could be applied to a new type of holding, such as a contract, where dropping of an extension in a read/write cycle could cause loss of value.
hasMandatory in interface Protos.ExtensionOrBuilderpublic boolean getMandatory()
required bool mandatory = 3;
If we do not understand a mandatory extension, abort to prevent data loss. For example, this could be applied to a new type of holding, such as a contract, where dropping of an extension in a read/write cycle could cause loss of value.
getMandatory in interface Protos.ExtensionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.Extension parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Extension parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Extension parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Extension parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Extension parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Extension parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Extension parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Extension.Builder newBuilder()
public Protos.Extension.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.Extension.Builder newBuilder(Protos.Extension prototype)
public Protos.Extension.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.Extension.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.