org.bitcoinj.wallet
Class Protos.Extension.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>
              extended by org.bitcoinj.wallet.Protos.Extension.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Protos.ExtensionOrBuilder
Enclosing class:
Protos.Extension

public static final class Protos.Extension.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>
implements Protos.ExtensionOrBuilder

Protobuf type wallet.Extension

 An extension to the wallet 
 


Method Summary
 Protos.Extension build()
           
 Protos.Extension buildPartial()
           
 Protos.Extension.Builder clear()
           
 Protos.Extension.Builder clearData()
          required bytes data = 2;
 Protos.Extension.Builder clearId()
          required string id = 1;
 Protos.Extension.Builder clearMandatory()
          required bool mandatory = 3;
 Protos.Extension.Builder clone()
           
 com.google.protobuf.ByteString getData()
          required bytes data = 2;
 Protos.Extension getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 String getId()
          required string id = 1;
 com.google.protobuf.ByteString getIdBytes()
          required string id = 1;
 boolean getMandatory()
          required bool mandatory = 3;
 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()
           
 Protos.Extension.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.Extension.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.Extension.Builder mergeFrom(Protos.Extension other)
           
 Protos.Extension.Builder setData(com.google.protobuf.ByteString value)
          required bytes data = 2;
 Protos.Extension.Builder setId(String value)
          required string id = 1;
 Protos.Extension.Builder setIdBytes(com.google.protobuf.ByteString value)
          required string id = 1;
 Protos.Extension.Builder setMandatory(boolean value)
          required bool mandatory = 3;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>

clear

public Protos.Extension.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>

clone

public Protos.Extension.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>

getDefaultInstanceForType

public Protos.Extension getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public Protos.Extension build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public Protos.Extension buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public Protos.Extension.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Extension.Builder>

mergeFrom

public Protos.Extension.Builder mergeFrom(Protos.Extension other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.Extension.Builder>

mergeFrom

public Protos.Extension.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Extension.Builder>
Throws:
IOException

hasId

public boolean hasId()
required string id = 1;
 like org.whatever.foo.bar
 

Specified by:
hasId in interface Protos.ExtensionOrBuilder

getId

public String getId()
required string id = 1;
 like org.whatever.foo.bar
 

Specified by:
getId in interface Protos.ExtensionOrBuilder

getIdBytes

public com.google.protobuf.ByteString getIdBytes()
required string id = 1;
 like org.whatever.foo.bar
 

Specified by:
getIdBytes in interface Protos.ExtensionOrBuilder

setId

public Protos.Extension.Builder setId(String value)
required string id = 1;
 like org.whatever.foo.bar
 


clearId

public Protos.Extension.Builder clearId()
required string id = 1;
 like org.whatever.foo.bar
 


setIdBytes

public Protos.Extension.Builder setIdBytes(com.google.protobuf.ByteString value)
required string id = 1;
 like org.whatever.foo.bar
 


hasData

public boolean hasData()
required bytes data = 2;

Specified by:
hasData in interface Protos.ExtensionOrBuilder

getData

public com.google.protobuf.ByteString getData()
required bytes data = 2;

Specified by:
getData in interface Protos.ExtensionOrBuilder

setData

public Protos.Extension.Builder setData(com.google.protobuf.ByteString value)
required bytes data = 2;


clearData

public Protos.Extension.Builder clearData()
required bytes data = 2;


hasMandatory

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.
 

Specified by:
hasMandatory in interface Protos.ExtensionOrBuilder

getMandatory

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.
 

Specified by:
getMandatory in interface Protos.ExtensionOrBuilder

setMandatory

public Protos.Extension.Builder setMandatory(boolean value)
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.
 


clearMandatory

public Protos.Extension.Builder clearMandatory()
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.
 



Copyright © 2014. All rights reserved.