public static final class ChannelHeader.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder> implements ChannelHeaderOrBuilder
Header is a generic replay prevention and identity message to include in a signed payloadProtobuf type
common.ChannelHeader
Modifier and Type | Method and Description |
---|---|
ChannelHeader.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChannelHeader |
build() |
ChannelHeader |
buildPartial() |
ChannelHeader.Builder |
clear() |
ChannelHeader.Builder |
clearChannelId()
Identifier of the channel this message is bound for
|
ChannelHeader.Builder |
clearEpoch()
The epoch in which this header was generated, where epoch is defined based on block height
Epoch in which the response has been generated.
|
ChannelHeader.Builder |
clearExtension()
Extension that may be attached based on the header type
|
ChannelHeader.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChannelHeader.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChannelHeader.Builder |
clearTimestamp()
Timestamp is the local time when the message was created
by the sender
|
ChannelHeader.Builder |
clearTlsCertHash()
If mutual TLS is employed, this represents
the hash of the client's TLS certificate
|
ChannelHeader.Builder |
clearTxId()
An unique identifier that is used end-to-end.
|
ChannelHeader.Builder |
clearType()
Header types 0-10000 are reserved and defined by HeaderType
|
ChannelHeader.Builder |
clearVersion()
Version indicates message protocol version
|
ChannelHeader.Builder |
clone() |
String |
getChannelId()
Identifier of the channel this message is bound for
|
com.google.protobuf.ByteString |
getChannelIdBytes()
Identifier of the channel this message is bound for
|
ChannelHeader |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getEpoch()
The epoch in which this header was generated, where epoch is defined based on block height
Epoch in which the response has been generated.
|
com.google.protobuf.ByteString |
getExtension()
Extension that may be attached based on the header type
|
com.google.protobuf.Timestamp |
getTimestamp()
Timestamp is the local time when the message was created
by the sender
|
com.google.protobuf.Timestamp.Builder |
getTimestampBuilder()
Timestamp is the local time when the message was created
by the sender
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
Timestamp is the local time when the message was created
by the sender
|
com.google.protobuf.ByteString |
getTlsCertHash()
If mutual TLS is employed, this represents
the hash of the client's TLS certificate
|
String |
getTxId()
An unique identifier that is used end-to-end.
|
com.google.protobuf.ByteString |
getTxIdBytes()
An unique identifier that is used end-to-end.
|
int |
getType()
Header types 0-10000 are reserved and defined by HeaderType
|
int |
getVersion()
Version indicates message protocol version
|
boolean |
hasTimestamp()
Timestamp is the local time when the message was created
by the sender
|
boolean |
isInitialized() |
ChannelHeader.Builder |
mergeFrom(ChannelHeader other) |
ChannelHeader.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChannelHeader.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChannelHeader.Builder |
mergeTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the local time when the message was created
by the sender
|
ChannelHeader.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChannelHeader.Builder |
setChannelId(String value)
Identifier of the channel this message is bound for
|
ChannelHeader.Builder |
setChannelIdBytes(com.google.protobuf.ByteString value)
Identifier of the channel this message is bound for
|
ChannelHeader.Builder |
setEpoch(long value)
The epoch in which this header was generated, where epoch is defined based on block height
Epoch in which the response has been generated.
|
ChannelHeader.Builder |
setExtension(com.google.protobuf.ByteString value)
Extension that may be attached based on the header type
|
ChannelHeader.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChannelHeader.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChannelHeader.Builder |
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp is the local time when the message was created
by the sender
|
ChannelHeader.Builder |
setTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the local time when the message was created
by the sender
|
ChannelHeader.Builder |
setTlsCertHash(com.google.protobuf.ByteString value)
If mutual TLS is employed, this represents
the hash of the client's TLS certificate
|
ChannelHeader.Builder |
setTxId(String value)
An unique identifier that is used end-to-end.
|
ChannelHeader.Builder |
setTxIdBytes(com.google.protobuf.ByteString value)
An unique identifier that is used end-to-end.
|
ChannelHeader.Builder |
setType(int value)
Header types 0-10000 are reserved and defined by HeaderType
|
ChannelHeader.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChannelHeader.Builder |
setVersion(int value)
Version indicates message protocol version
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public ChannelHeader.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChannelHeader build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChannelHeader buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChannelHeader.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder mergeFrom(ChannelHeader other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public ChannelHeader.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChannelHeader.Builder>
IOException
public int getType()
Header types 0-10000 are reserved and defined by HeaderType
int32 type = 1 [json_name = "type"];
getType
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setType(int value)
Header types 0-10000 are reserved and defined by HeaderType
int32 type = 1 [json_name = "type"];
value
- The type to set.public ChannelHeader.Builder clearType()
Header types 0-10000 are reserved and defined by HeaderType
int32 type = 1 [json_name = "type"];
public int getVersion()
Version indicates message protocol version
int32 version = 2 [json_name = "version"];
getVersion
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setVersion(int value)
Version indicates message protocol version
int32 version = 2 [json_name = "version"];
value
- The version to set.public ChannelHeader.Builder clearVersion()
Version indicates message protocol version
int32 version = 2 [json_name = "version"];
public boolean hasTimestamp()
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
hasTimestamp
in interface ChannelHeaderOrBuilder
public com.google.protobuf.Timestamp getTimestamp()
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
getTimestamp
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
public ChannelHeader.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
public ChannelHeader.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
public ChannelHeader.Builder clearTimestamp()
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
Timestamp is the local time when the message was created by the sender
.google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
getTimestampOrBuilder
in interface ChannelHeaderOrBuilder
public String getChannelId()
Identifier of the channel this message is bound for
string channel_id = 4 [json_name = "channelId"];
getChannelId
in interface ChannelHeaderOrBuilder
public com.google.protobuf.ByteString getChannelIdBytes()
Identifier of the channel this message is bound for
string channel_id = 4 [json_name = "channelId"];
getChannelIdBytes
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setChannelId(String value)
Identifier of the channel this message is bound for
string channel_id = 4 [json_name = "channelId"];
value
- The channelId to set.public ChannelHeader.Builder clearChannelId()
Identifier of the channel this message is bound for
string channel_id = 4 [json_name = "channelId"];
public ChannelHeader.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
Identifier of the channel this message is bound for
string channel_id = 4 [json_name = "channelId"];
value
- The bytes for channelId to set.public String getTxId()
An unique identifier that is used end-to-end. - set by higher layers such as end user or SDK - passed to the endorser (which will check for uniqueness) - as the header is passed along unchanged, it will be be retrieved by the committer (uniqueness check here as well) - to be stored in the ledger
string tx_id = 5 [json_name = "txId"];
getTxId
in interface ChannelHeaderOrBuilder
public com.google.protobuf.ByteString getTxIdBytes()
An unique identifier that is used end-to-end. - set by higher layers such as end user or SDK - passed to the endorser (which will check for uniqueness) - as the header is passed along unchanged, it will be be retrieved by the committer (uniqueness check here as well) - to be stored in the ledger
string tx_id = 5 [json_name = "txId"];
getTxIdBytes
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setTxId(String value)
An unique identifier that is used end-to-end. - set by higher layers such as end user or SDK - passed to the endorser (which will check for uniqueness) - as the header is passed along unchanged, it will be be retrieved by the committer (uniqueness check here as well) - to be stored in the ledger
string tx_id = 5 [json_name = "txId"];
value
- The txId to set.public ChannelHeader.Builder clearTxId()
An unique identifier that is used end-to-end. - set by higher layers such as end user or SDK - passed to the endorser (which will check for uniqueness) - as the header is passed along unchanged, it will be be retrieved by the committer (uniqueness check here as well) - to be stored in the ledger
string tx_id = 5 [json_name = "txId"];
public ChannelHeader.Builder setTxIdBytes(com.google.protobuf.ByteString value)
An unique identifier that is used end-to-end. - set by higher layers such as end user or SDK - passed to the endorser (which will check for uniqueness) - as the header is passed along unchanged, it will be be retrieved by the committer (uniqueness check here as well) - to be stored in the ledger
string tx_id = 5 [json_name = "txId"];
value
- The bytes for txId to set.public long getEpoch()
The epoch in which this header was generated, where epoch is defined based on block height Epoch in which the response has been generated. This field identifies a logical window of time. A proposal response is accepted by a peer only if two conditions hold: 1. the epoch specified in the message is the current epoch 2. this message has been only seen once during this epoch (i.e. it hasn't been replayed)
uint64 epoch = 6 [json_name = "epoch"];
getEpoch
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setEpoch(long value)
The epoch in which this header was generated, where epoch is defined based on block height Epoch in which the response has been generated. This field identifies a logical window of time. A proposal response is accepted by a peer only if two conditions hold: 1. the epoch specified in the message is the current epoch 2. this message has been only seen once during this epoch (i.e. it hasn't been replayed)
uint64 epoch = 6 [json_name = "epoch"];
value
- The epoch to set.public ChannelHeader.Builder clearEpoch()
The epoch in which this header was generated, where epoch is defined based on block height Epoch in which the response has been generated. This field identifies a logical window of time. A proposal response is accepted by a peer only if two conditions hold: 1. the epoch specified in the message is the current epoch 2. this message has been only seen once during this epoch (i.e. it hasn't been replayed)
uint64 epoch = 6 [json_name = "epoch"];
public com.google.protobuf.ByteString getExtension()
Extension that may be attached based on the header type
bytes extension = 7 [json_name = "extension"];
getExtension
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setExtension(com.google.protobuf.ByteString value)
Extension that may be attached based on the header type
bytes extension = 7 [json_name = "extension"];
value
- The extension to set.public ChannelHeader.Builder clearExtension()
Extension that may be attached based on the header type
bytes extension = 7 [json_name = "extension"];
public com.google.protobuf.ByteString getTlsCertHash()
If mutual TLS is employed, this represents the hash of the client's TLS certificate
bytes tls_cert_hash = 8 [json_name = "tlsCertHash"];
getTlsCertHash
in interface ChannelHeaderOrBuilder
public ChannelHeader.Builder setTlsCertHash(com.google.protobuf.ByteString value)
If mutual TLS is employed, this represents the hash of the client's TLS certificate
bytes tls_cert_hash = 8 [json_name = "tlsCertHash"];
value
- The tlsCertHash to set.public ChannelHeader.Builder clearTlsCertHash()
If mutual TLS is employed, this represents the hash of the client's TLS certificate
bytes tls_cert_hash = 8 [json_name = "tlsCertHash"];
public final ChannelHeader.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
public final ChannelHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelHeader.Builder>
Copyright © 2022. All rights reserved.