org.hyperledger.fabric.protos.orderer.NodeAuthRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: orderer/clusterserver.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.orderer;
/**
*
* NodeAuthRequest for authenticate the stream
* between the cluster members
*
*
* Protobuf type {@code orderer.NodeAuthRequest}
*/
public final class NodeAuthRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:orderer.NodeAuthRequest)
NodeAuthRequestOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
NodeAuthRequest.class.getName());
}
// Use NodeAuthRequest.newBuilder() to construct.
private NodeAuthRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private NodeAuthRequest() {
signature_ = com.google.protobuf.ByteString.EMPTY;
sessionBinding_ = com.google.protobuf.ByteString.EMPTY;
channel_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_NodeAuthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_NodeAuthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.NodeAuthRequest.class, org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
private int version_ = 0;
/**
*
* version represents the fields on which the signature is computed
*
*
* uint32 version = 1 [json_name = "version"];
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* signature is verifiable using the initiator's public key
*
*
* bytes signature = 2 [json_name = "signature"];
* @return The signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int FROM_ID_FIELD_NUMBER = 4;
private long fromId_ = 0L;
/**
*
* from_id is the numerical identifier of the initiator of the connection
*
*
* uint64 from_id = 4 [json_name = "fromId"];
* @return The fromId.
*/
@java.lang.Override
public long getFromId() {
return fromId_;
}
public static final int TO_ID_FIELD_NUMBER = 5;
private long toId_ = 0L;
/**
*
* to_id is the numerical identifier of the node that is being connected to
*
*
* uint64 to_id = 5 [json_name = "toId"];
* @return The toId.
*/
@java.lang.Override
public long getToId() {
return toId_;
}
public static final int SESSION_BINDING_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString sessionBinding_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* session_binding is verifiable using application level protocol
*
*
* bytes session_binding = 6 [json_name = "sessionBinding"];
* @return The sessionBinding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSessionBinding() {
return sessionBinding_;
}
public static final int CHANNEL_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object channel_ = "";
/**
* string channel = 7 [json_name = "channel"];
* @return The channel.
*/
@java.lang.Override
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
}
}
/**
* string channel = 7 [json_name = "channel"];
* @return The bytes for channel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (version_ != 0) {
output.writeUInt32(1, version_);
}
if (!signature_.isEmpty()) {
output.writeBytes(2, signature_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTimestamp());
}
if (fromId_ != 0L) {
output.writeUInt64(4, fromId_);
}
if (toId_ != 0L) {
output.writeUInt64(5, toId_);
}
if (!sessionBinding_.isEmpty()) {
output.writeBytes(6, sessionBinding_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channel_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, channel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, version_);
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, signature_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTimestamp());
}
if (fromId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, fromId_);
}
if (toId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, toId_);
}
if (!sessionBinding_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, sessionBinding_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channel_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, channel_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.NodeAuthRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.NodeAuthRequest other = (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) obj;
if (getVersion()
!= other.getVersion()) return false;
if (!getSignature()
.equals(other.getSignature())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (getFromId()
!= other.getFromId()) return false;
if (getToId()
!= other.getToId()) return false;
if (!getSessionBinding()
.equals(other.getSessionBinding())) return false;
if (!getChannel()
.equals(other.getChannel())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (37 * hash) + FROM_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFromId());
hash = (37 * hash) + TO_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getToId());
hash = (37 * hash) + SESSION_BINDING_FIELD_NUMBER;
hash = (53 * hash) + getSessionBinding().hashCode();
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.NodeAuthRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* NodeAuthRequest for authenticate the stream
* between the cluster members
*
*
* Protobuf type {@code orderer.NodeAuthRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.NodeAuthRequest)
org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_NodeAuthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_NodeAuthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.NodeAuthRequest.class, org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.NodeAuthRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = 0;
signature_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
fromId_ = 0L;
toId_ = 0L;
sessionBinding_ = com.google.protobuf.ByteString.EMPTY;
channel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_NodeAuthRequest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.NodeAuthRequest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.NodeAuthRequest build() {
org.hyperledger.fabric.protos.orderer.NodeAuthRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.NodeAuthRequest buildPartial() {
org.hyperledger.fabric.protos.orderer.NodeAuthRequest result = new org.hyperledger.fabric.protos.orderer.NodeAuthRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.NodeAuthRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.signature_ = signature_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.fromId_ = fromId_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.toId_ = toId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.sessionBinding_ = sessionBinding_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.channel_ = channel_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.NodeAuthRequest) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.NodeAuthRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.NodeAuthRequest other) {
if (other == org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.getFromId() != 0L) {
setFromId(other.getFromId());
}
if (other.getToId() != 0L) {
setToId(other.getToId());
}
if (other.getSessionBinding() != com.google.protobuf.ByteString.EMPTY) {
setSessionBinding(other.getSessionBinding());
}
if (!other.getChannel().isEmpty()) {
channel_ = other.channel_;
bitField0_ |= 0x00000040;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
version_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
signature_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
fromId_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
toId_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
sessionBinding_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
channel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int version_ ;
/**
*
* version represents the fields on which the signature is computed
*
*
* uint32 version = 1 [json_name = "version"];
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
*
* version represents the fields on which the signature is computed
*
*
* uint32 version = 1 [json_name = "version"];
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* version represents the fields on which the signature is computed
*
*
* uint32 version = 1 [json_name = "version"];
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* signature is verifiable using the initiator's public key
*
*
* bytes signature = 2 [json_name = "signature"];
* @return The signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
*
* signature is verifiable using the initiator's public key
*
*
* bytes signature = 2 [json_name = "signature"];
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
signature_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* signature is verifiable using the initiator's public key
*
*
* bytes signature = 2 [json_name = "signature"];
* @return This builder for chaining.
*/
public Builder clearSignature() {
bitField0_ = (bitField0_ & ~0x00000002);
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* timestamp indicates the freshness of the request; expected to be within the margin
* of the responsder's local time
*
*
* .google.protobuf.Timestamp timestamp = 3 [json_name = "timestamp"];
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private long fromId_ ;
/**
*
* from_id is the numerical identifier of the initiator of the connection
*
*
* uint64 from_id = 4 [json_name = "fromId"];
* @return The fromId.
*/
@java.lang.Override
public long getFromId() {
return fromId_;
}
/**
*
* from_id is the numerical identifier of the initiator of the connection
*
*
* uint64 from_id = 4 [json_name = "fromId"];
* @param value The fromId to set.
* @return This builder for chaining.
*/
public Builder setFromId(long value) {
fromId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* from_id is the numerical identifier of the initiator of the connection
*
*
* uint64 from_id = 4 [json_name = "fromId"];
* @return This builder for chaining.
*/
public Builder clearFromId() {
bitField0_ = (bitField0_ & ~0x00000008);
fromId_ = 0L;
onChanged();
return this;
}
private long toId_ ;
/**
*
* to_id is the numerical identifier of the node that is being connected to
*
*
* uint64 to_id = 5 [json_name = "toId"];
* @return The toId.
*/
@java.lang.Override
public long getToId() {
return toId_;
}
/**
*
* to_id is the numerical identifier of the node that is being connected to
*
*
* uint64 to_id = 5 [json_name = "toId"];
* @param value The toId to set.
* @return This builder for chaining.
*/
public Builder setToId(long value) {
toId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* to_id is the numerical identifier of the node that is being connected to
*
*
* uint64 to_id = 5 [json_name = "toId"];
* @return This builder for chaining.
*/
public Builder clearToId() {
bitField0_ = (bitField0_ & ~0x00000010);
toId_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString sessionBinding_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* session_binding is verifiable using application level protocol
*
*
* bytes session_binding = 6 [json_name = "sessionBinding"];
* @return The sessionBinding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSessionBinding() {
return sessionBinding_;
}
/**
*
* session_binding is verifiable using application level protocol
*
*
* bytes session_binding = 6 [json_name = "sessionBinding"];
* @param value The sessionBinding to set.
* @return This builder for chaining.
*/
public Builder setSessionBinding(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
sessionBinding_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* session_binding is verifiable using application level protocol
*
*
* bytes session_binding = 6 [json_name = "sessionBinding"];
* @return This builder for chaining.
*/
public Builder clearSessionBinding() {
bitField0_ = (bitField0_ & ~0x00000020);
sessionBinding_ = getDefaultInstance().getSessionBinding();
onChanged();
return this;
}
private java.lang.Object channel_ = "";
/**
* string channel = 7 [json_name = "channel"];
* @return The channel.
*/
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel = 7 [json_name = "channel"];
* @return The bytes for channel.
*/
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel = 7 [json_name = "channel"];
* @param value The channel to set.
* @return This builder for chaining.
*/
public Builder setChannel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channel_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* string channel = 7 [json_name = "channel"];
* @return This builder for chaining.
*/
public Builder clearChannel() {
channel_ = getDefaultInstance().getChannel();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* string channel = 7 [json_name = "channel"];
* @param value The bytes for channel to set.
* @return This builder for chaining.
*/
public Builder setChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channel_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.NodeAuthRequest)
}
// @@protoc_insertion_point(class_scope:orderer.NodeAuthRequest)
private static final org.hyperledger.fabric.protos.orderer.NodeAuthRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.NodeAuthRequest();
}
public static org.hyperledger.fabric.protos.orderer.NodeAuthRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeAuthRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.NodeAuthRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy