类 CommonProto.Contract.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
org.bdware.bdledger.api.grpc.pb.CommonProto.Contract.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, CommonProto.ContractOrBuilder
封闭类:
CommonProto.Contract

public static final class CommonProto.Contract.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder> implements CommonProto.ContractOrBuilder
Protobuf type bdware.bdledger.api.Contract
  • 方法详细资料

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • clear

      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • getDefaultInstanceForType

      public CommonProto.Contract getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public CommonProto.Contract build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CommonProto.Contract buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • setField

      public CommonProto.Contract.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • clearField

      public CommonProto.Contract.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • clearOneof

      public CommonProto.Contract.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • setRepeatedField

      public CommonProto.Contract.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • addRepeatedField

      public CommonProto.Contract.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • mergeFrom

      public CommonProto.Contract.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<CommonProto.Contract.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • mergeFrom

      public CommonProto.Contract.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<CommonProto.Contract.Builder>
      抛出:
      IOException
    • getContractName

      public com.google.protobuf.ByteString getContractName()
      合约名称
       
      bytes contractName = 1;
      指定者:
      getContractName 在接口中 CommonProto.ContractOrBuilder
      返回:
      The contractName.
    • setContractName

      public CommonProto.Contract.Builder setContractName(com.google.protobuf.ByteString value)
      合约名称
       
      bytes contractName = 1;
      参数:
      value - The contractName to set.
      返回:
      This builder for chaining.
    • clearContractName

      public CommonProto.Contract.Builder clearContractName()
      合约名称
       
      bytes contractName = 1;
      返回:
      This builder for chaining.
    • getRandomNum

      public int getRandomNum()
      合约执行的节点数量
       
      uint32 randomNum = 2;
      指定者:
      getRandomNum 在接口中 CommonProto.ContractOrBuilder
      返回:
      The randomNum.
    • setRandomNum

      public CommonProto.Contract.Builder setRandomNum(int value)
      合约执行的节点数量
       
      uint32 randomNum = 2;
      参数:
      value - The randomNum to set.
      返回:
      This builder for chaining.
    • clearRandomNum

      public CommonProto.Contract.Builder clearRandomNum()
      合约执行的节点数量
       
      uint32 randomNum = 2;
      返回:
      This builder for chaining.
    • getOperation

      public com.google.protobuf.ByteString getOperation()
      合约方法
       
      bytes operation = 3;
      指定者:
      getOperation 在接口中 CommonProto.ContractOrBuilder
      返回:
      The operation.
    • setOperation

      public CommonProto.Contract.Builder setOperation(com.google.protobuf.ByteString value)
      合约方法
       
      bytes operation = 3;
      参数:
      value - The operation to set.
      返回:
      This builder for chaining.
    • clearOperation

      public CommonProto.Contract.Builder clearOperation()
      合约方法
       
      bytes operation = 3;
      返回:
      This builder for chaining.
    • getArg

      public com.google.protobuf.ByteString getArg()
      合约方法参数
       
      bytes arg = 4;
      指定者:
      getArg 在接口中 CommonProto.ContractOrBuilder
      返回:
      The arg.
    • setArg

      public CommonProto.Contract.Builder setArg(com.google.protobuf.ByteString value)
      合约方法参数
       
      bytes arg = 4;
      参数:
      value - The arg to set.
      返回:
      This builder for chaining.
    • clearArg

      public CommonProto.Contract.Builder clearArg()
      合约方法参数
       
      bytes arg = 4;
      返回:
      This builder for chaining.
    • getPath

      public com.google.protobuf.ByteString getPath()
      合约文件路径(合约在IDE工程的相对路径)
       
      bytes path = 5;
      指定者:
      getPath 在接口中 CommonProto.ContractOrBuilder
      返回:
      The path.
    • setPath

      public CommonProto.Contract.Builder setPath(com.google.protobuf.ByteString value)
      合约文件路径(合约在IDE工程的相对路径)
       
      bytes path = 5;
      参数:
      value - The path to set.
      返回:
      This builder for chaining.
    • clearPath

      public CommonProto.Contract.Builder clearPath()
      合约文件路径(合约在IDE工程的相对路径)
       
      bytes path = 5;
      返回:
      This builder for chaining.
    • getContent

      public com.google.protobuf.ByteString getContent()
      合约内容(可为合约文件相对路径/合约脚本)
       
      bytes content = 6;
      指定者:
      getContent 在接口中 CommonProto.ContractOrBuilder
      返回:
      The content.
    • setContent

      public CommonProto.Contract.Builder setContent(com.google.protobuf.ByteString value)
      合约内容(可为合约文件相对路径/合约脚本)
       
      bytes content = 6;
      参数:
      value - The content to set.
      返回:
      This builder for chaining.
    • clearContent

      public CommonProto.Contract.Builder clearContent()
      合约内容(可为合约文件相对路径/合约脚本)
       
      bytes content = 6;
      返回:
      This builder for chaining.
    • getPubkey

      public com.google.protobuf.ByteString getPubkey()
      用户公钥
       
      bytes pubkey = 7;
      指定者:
      getPubkey 在接口中 CommonProto.ContractOrBuilder
      返回:
      The pubkey.
    • setPubkey

      public CommonProto.Contract.Builder setPubkey(com.google.protobuf.ByteString value)
      用户公钥
       
      bytes pubkey = 7;
      参数:
      value - The pubkey to set.
      返回:
      This builder for chaining.
    • clearPubkey

      public CommonProto.Contract.Builder clearPubkey()
      用户公钥
       
      bytes pubkey = 7;
      返回:
      This builder for chaining.
    • setUnknownFields

      public final CommonProto.Contract.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>
    • mergeUnknownFields

      public final CommonProto.Contract.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Contract.Builder>