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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.Extension> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasId()
required string id = 1;
like org.whatever.foo.bar
hasId
in interface Protos.ExtensionOrBuilder
public String getId()
required string id = 1;
like org.whatever.foo.bar
getId
in interface Protos.ExtensionOrBuilder
public com.google.protobuf.ByteString getIdBytes()
required string id = 1;
like org.whatever.foo.bar
getIdBytes
in interface Protos.ExtensionOrBuilder
public boolean hasData()
required bytes data = 2;
hasData
in interface Protos.ExtensionOrBuilder
public com.google.protobuf.ByteString getData()
required bytes data = 2;
getData
in interface Protos.ExtensionOrBuilder
public 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.ExtensionOrBuilder
public 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.ExtensionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.Extension parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Extension parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Extension parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Extension parseFrom(InputStream input) throws IOException
IOException
public static Protos.Extension parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Extension parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.Extension parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Extension.Builder newBuilder()
public Protos.Extension.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.Extension.Builder newBuilder(Protos.Extension prototype)
public Protos.Extension.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.Extension.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2014. All rights reserved.