类 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
-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
build()
clear()
clearArg()
合约方法参数合约内容(可为合约文件相对路径/合约脚本)合约名称clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
合约方法合约文件路径(合约在IDE工程的相对路径)用户公钥合约执行的节点数量clone()
com.google.protobuf.ByteString
getArg()
合约方法参数com.google.protobuf.ByteString
合约内容(可为合约文件相对路径/合约脚本)com.google.protobuf.ByteString
合约名称static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
合约方法com.google.protobuf.ByteString
getPath()
合约文件路径(合约在IDE工程的相对路径)com.google.protobuf.ByteString
用户公钥int
合约执行的节点数量protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
boolean
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
mergeFrom(com.google.protobuf.Message other)
mergeFrom(CommonProto.Contract other)
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setArg(com.google.protobuf.ByteString value)
合约方法参数setContent(com.google.protobuf.ByteString value)
合约内容(可为合约文件相对路径/合约脚本)setContractName(com.google.protobuf.ByteString value)
合约名称setOperation(com.google.protobuf.ByteString value)
合约方法setPath(com.google.protobuf.ByteString value)
合约文件路径(合约在IDE工程的相对路径)setPubkey(com.google.protobuf.ByteString value)
用户公钥setRandomNum(int value)
合约执行的节点数量setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom
从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
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
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageLiteOrBuilder
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build
在接口中com.google.protobuf.Message.Builder
- 指定者:
build
在接口中com.google.protobuf.MessageLite.Builder
-
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
- 指定者:
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
合约名称
bytes contractName = 1;
- 参数:
value
- The contractName to set.- 返回:
- This builder for chaining.
-
clearContractName
合约名称
bytes contractName = 1;
- 返回:
- This builder for chaining.
-
getRandomNum
public int getRandomNum()合约执行的节点数量
uint32 randomNum = 2;
- 指定者:
getRandomNum
在接口中CommonProto.ContractOrBuilder
- 返回:
- The randomNum.
-
setRandomNum
合约执行的节点数量
uint32 randomNum = 2;
- 参数:
value
- The randomNum to set.- 返回:
- This builder for chaining.
-
clearRandomNum
合约执行的节点数量
uint32 randomNum = 2;
- 返回:
- This builder for chaining.
-
getOperation
public com.google.protobuf.ByteString getOperation()合约方法
bytes operation = 3;
- 指定者:
getOperation
在接口中CommonProto.ContractOrBuilder
- 返回:
- The operation.
-
setOperation
合约方法
bytes operation = 3;
- 参数:
value
- The operation to set.- 返回:
- This builder for chaining.
-
clearOperation
合约方法
bytes operation = 3;
- 返回:
- This builder for chaining.
-
getArg
public com.google.protobuf.ByteString getArg()合约方法参数
bytes arg = 4;
- 指定者:
getArg
在接口中CommonProto.ContractOrBuilder
- 返回:
- The arg.
-
setArg
合约方法参数
bytes arg = 4;
- 参数:
value
- The arg to set.- 返回:
- This builder for chaining.
-
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
合约文件路径(合约在IDE工程的相对路径)
bytes path = 5;
- 参数:
value
- The path to set.- 返回:
- This builder for chaining.
-
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
合约内容(可为合约文件相对路径/合约脚本)
bytes content = 6;
- 参数:
value
- The content to set.- 返回:
- This builder for chaining.
-
clearContent
合约内容(可为合约文件相对路径/合约脚本)
bytes content = 6;
- 返回:
- This builder for chaining.
-
getPubkey
public com.google.protobuf.ByteString getPubkey()用户公钥
bytes pubkey = 7;
- 指定者:
getPubkey
在接口中CommonProto.ContractOrBuilder
- 返回:
- The pubkey.
-
setPubkey
用户公钥
bytes pubkey = 7;
- 参数:
value
- The pubkey to set.- 返回:
- This builder for chaining.
-
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>
-