Class Protos.Extension.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Extension,Protos.Extension.Builder>
org.bitcoinj.wallet.Protos.Extension.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ExtensionOrBuilder
Enclosing class:
Protos.Extension

public static final class Protos.Extension.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Extension,Protos.Extension.Builder> implements Protos.ExtensionOrBuilder
 An extension to the wallet 
 
Protobuf type wallet.Extension
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance, isBuilt
  • Method Summary

    Modifier and Type
    Method
    Description
    required bytes data = 2;
    like org.whatever.foo.bar
    If we do not understand a mandatory extension, abort to prevent data loss.
    com.google.protobuf.ByteString
    required bytes data = 2;
    like org.whatever.foo.bar
    com.google.protobuf.ByteString
    like org.whatever.foo.bar
    boolean
    If we do not understand a mandatory extension, abort to prevent data loss.
    boolean
    required bytes data = 2;
    boolean
    like org.whatever.foo.bar
    boolean
    If we do not understand a mandatory extension, abort to prevent data loss.
    setData(com.google.protobuf.ByteString value)
    required bytes data = 2;
    setId(String value)
    like org.whatever.foo.bar
    setIdBytes(com.google.protobuf.ByteString value)
    like org.whatever.foo.bar
    setMandatory(boolean value)
    If we do not understand a mandatory extension, abort to prevent data loss.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, 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.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasId

      public boolean hasId()
       like org.whatever.foo.bar
       
      required string id = 1;
      Specified by:
      hasId in interface Protos.ExtensionOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       like org.whatever.foo.bar
       
      required string id = 1;
      Specified by:
      getId in interface Protos.ExtensionOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       like org.whatever.foo.bar
       
      required string id = 1;
      Specified by:
      getIdBytes in interface Protos.ExtensionOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Protos.Extension.Builder setId(String value)
       like org.whatever.foo.bar
       
      required string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Protos.Extension.Builder clearId()
       like org.whatever.foo.bar
       
      required string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Protos.Extension.Builder setIdBytes(com.google.protobuf.ByteString value)
       like org.whatever.foo.bar
       
      required string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
      required bytes data = 2;
      Specified by:
      hasData in interface Protos.ExtensionOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public com.google.protobuf.ByteString getData()
      required bytes data = 2;
      Specified by:
      getData in interface Protos.ExtensionOrBuilder
      Returns:
      The data.
    • setData

      public Protos.Extension.Builder setData(com.google.protobuf.ByteString value)
      required bytes data = 2;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public Protos.Extension.Builder clearData()
      required bytes data = 2;
      Returns:
      This builder for chaining.
    • hasMandatory

      public boolean hasMandatory()
       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.
       
      required bool mandatory = 3;
      Specified by:
      hasMandatory in interface Protos.ExtensionOrBuilder
      Returns:
      Whether the mandatory field is set.
    • getMandatory

      public boolean getMandatory()
       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.
       
      required bool mandatory = 3;
      Specified by:
      getMandatory in interface Protos.ExtensionOrBuilder
      Returns:
      The mandatory.
    • setMandatory

      public Protos.Extension.Builder setMandatory(boolean value)
       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.
       
      required bool mandatory = 3;
      Parameters:
      value - The mandatory to set.
      Returns:
      This builder for chaining.
    • clearMandatory

      public Protos.Extension.Builder clearMandatory()
       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.
       
      required bool mandatory = 3;
      Returns:
      This builder for chaining.