org.hyperledger.fabric.protos.common.Consenter Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: common/configuration.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.common;
/**
*
* Consenter represents a consenting node (i.e. replica).
*
*
* Protobuf type {@code common.Consenter}
*/
public final class Consenter extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:common.Consenter)
ConsenterOrBuilder {
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= */ "",
Consenter.class.getName());
}
// Use Consenter.newBuilder() to construct.
private Consenter(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Consenter() {
host_ = "";
mspId_ = "";
identity_ = com.google.protobuf.ByteString.EMPTY;
clientTlsCert_ = com.google.protobuf.ByteString.EMPTY;
serverTlsCert_ = com.google.protobuf.ByteString.EMPTY;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.ConfigurationProto.internal_static_common_Consenter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.ConfigurationProto.internal_static_common_Consenter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Consenter.class, org.hyperledger.fabric.protos.common.Consenter.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_ = 0;
/**
* uint32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int HOST_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object host_ = "";
/**
* string host = 2 [json_name = "host"];
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
* string host = 2 [json_name = "host"];
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 3;
private int port_ = 0;
/**
* uint32 port = 3 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
public static final int MSP_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object mspId_ = "";
/**
* string msp_id = 4 [json_name = "mspId"];
* @return The mspId.
*/
@java.lang.Override
public java.lang.String getMspId() {
java.lang.Object ref = mspId_;
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();
mspId_ = s;
return s;
}
}
/**
* string msp_id = 4 [json_name = "mspId"];
* @return The bytes for mspId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMspIdBytes() {
java.lang.Object ref = mspId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mspId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IDENTITY_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes identity = 5 [json_name = "identity"];
* @return The identity.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdentity() {
return identity_;
}
public static final int CLIENT_TLS_CERT_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString clientTlsCert_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes client_tls_cert = 6 [json_name = "clientTlsCert"];
* @return The clientTlsCert.
*/
@java.lang.Override
public com.google.protobuf.ByteString getClientTlsCert() {
return clientTlsCert_;
}
public static final int SERVER_TLS_CERT_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString serverTlsCert_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes server_tls_cert = 7 [json_name = "serverTlsCert"];
* @return The serverTlsCert.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServerTlsCert() {
return serverTlsCert_;
}
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 (id_ != 0) {
output.writeUInt32(1, id_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, host_);
}
if (port_ != 0) {
output.writeUInt32(3, port_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mspId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, mspId_);
}
if (!identity_.isEmpty()) {
output.writeBytes(5, identity_);
}
if (!clientTlsCert_.isEmpty()) {
output.writeBytes(6, clientTlsCert_);
}
if (!serverTlsCert_.isEmpty()) {
output.writeBytes(7, serverTlsCert_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, host_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, port_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mspId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mspId_);
}
if (!identity_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, identity_);
}
if (!clientTlsCert_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, clientTlsCert_);
}
if (!serverTlsCert_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, serverTlsCert_);
}
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.common.Consenter)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.Consenter other = (org.hyperledger.fabric.protos.common.Consenter) obj;
if (getId()
!= other.getId()) return false;
if (!getHost()
.equals(other.getHost())) return false;
if (getPort()
!= other.getPort()) return false;
if (!getMspId()
.equals(other.getMspId())) return false;
if (!getIdentity()
.equals(other.getIdentity())) return false;
if (!getClientTlsCert()
.equals(other.getClientTlsCert())) return false;
if (!getServerTlsCert()
.equals(other.getServerTlsCert())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (37 * hash) + MSP_ID_FIELD_NUMBER;
hash = (53 * hash) + getMspId().hashCode();
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getIdentity().hashCode();
hash = (37 * hash) + CLIENT_TLS_CERT_FIELD_NUMBER;
hash = (53 * hash) + getClientTlsCert().hashCode();
hash = (37 * hash) + SERVER_TLS_CERT_FIELD_NUMBER;
hash = (53 * hash) + getServerTlsCert().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.Consenter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Consenter 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.common.Consenter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Consenter 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.common.Consenter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.Consenter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.Consenter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Consenter 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.common.Consenter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Consenter 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.common.Consenter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.Consenter 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.common.Consenter 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;
}
/**
*
* Consenter represents a consenting node (i.e. replica).
*
*
* Protobuf type {@code common.Consenter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:common.Consenter)
org.hyperledger.fabric.protos.common.ConsenterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.ConfigurationProto.internal_static_common_Consenter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.ConfigurationProto.internal_static_common_Consenter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.Consenter.class, org.hyperledger.fabric.protos.common.Consenter.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.Consenter.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0;
host_ = "";
port_ = 0;
mspId_ = "";
identity_ = com.google.protobuf.ByteString.EMPTY;
clientTlsCert_ = com.google.protobuf.ByteString.EMPTY;
serverTlsCert_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.ConfigurationProto.internal_static_common_Consenter_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Consenter getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.Consenter.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Consenter build() {
org.hyperledger.fabric.protos.common.Consenter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.Consenter buildPartial() {
org.hyperledger.fabric.protos.common.Consenter result = new org.hyperledger.fabric.protos.common.Consenter(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.common.Consenter result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.host_ = host_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.port_ = port_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.mspId_ = mspId_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.identity_ = identity_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.clientTlsCert_ = clientTlsCert_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.serverTlsCert_ = serverTlsCert_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.Consenter) {
return mergeFrom((org.hyperledger.fabric.protos.common.Consenter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.Consenter other) {
if (other == org.hyperledger.fabric.protos.common.Consenter.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getHost().isEmpty()) {
host_ = other.host_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
if (!other.getMspId().isEmpty()) {
mspId_ = other.mspId_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getIdentity() != com.google.protobuf.ByteString.EMPTY) {
setIdentity(other.getIdentity());
}
if (other.getClientTlsCert() != com.google.protobuf.ByteString.EMPTY) {
setClientTlsCert(other.getClientTlsCert());
}
if (other.getServerTlsCert() != com.google.protobuf.ByteString.EMPTY) {
setServerTlsCert(other.getServerTlsCert());
}
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: {
id_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
host_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
port_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
mspId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
identity_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
clientTlsCert_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
serverTlsCert_ = input.readBytes();
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 id_ ;
/**
* uint32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* uint32 id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* uint32 id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 2 [json_name = "host"];
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string host = 2 [json_name = "host"];
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string host = 2 [json_name = "host"];
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
host_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string host = 2 [json_name = "host"];
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string host = 2 [json_name = "host"];
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
host_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int port_ ;
/**
* uint32 port = 3 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
* uint32 port = 3 [json_name = "port"];
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint32 port = 3 [json_name = "port"];
* @return This builder for chaining.
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
onChanged();
return this;
}
private java.lang.Object mspId_ = "";
/**
* string msp_id = 4 [json_name = "mspId"];
* @return The mspId.
*/
public java.lang.String getMspId() {
java.lang.Object ref = mspId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mspId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string msp_id = 4 [json_name = "mspId"];
* @return The bytes for mspId.
*/
public com.google.protobuf.ByteString
getMspIdBytes() {
java.lang.Object ref = mspId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mspId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string msp_id = 4 [json_name = "mspId"];
* @param value The mspId to set.
* @return This builder for chaining.
*/
public Builder setMspId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mspId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string msp_id = 4 [json_name = "mspId"];
* @return This builder for chaining.
*/
public Builder clearMspId() {
mspId_ = getDefaultInstance().getMspId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string msp_id = 4 [json_name = "mspId"];
* @param value The bytes for mspId to set.
* @return This builder for chaining.
*/
public Builder setMspIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
mspId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes identity = 5 [json_name = "identity"];
* @return The identity.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdentity() {
return identity_;
}
/**
* bytes identity = 5 [json_name = "identity"];
* @param value The identity to set.
* @return This builder for chaining.
*/
public Builder setIdentity(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
identity_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bytes identity = 5 [json_name = "identity"];
* @return This builder for chaining.
*/
public Builder clearIdentity() {
bitField0_ = (bitField0_ & ~0x00000010);
identity_ = getDefaultInstance().getIdentity();
onChanged();
return this;
}
private com.google.protobuf.ByteString clientTlsCert_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes client_tls_cert = 6 [json_name = "clientTlsCert"];
* @return The clientTlsCert.
*/
@java.lang.Override
public com.google.protobuf.ByteString getClientTlsCert() {
return clientTlsCert_;
}
/**
* bytes client_tls_cert = 6 [json_name = "clientTlsCert"];
* @param value The clientTlsCert to set.
* @return This builder for chaining.
*/
public Builder setClientTlsCert(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
clientTlsCert_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bytes client_tls_cert = 6 [json_name = "clientTlsCert"];
* @return This builder for chaining.
*/
public Builder clearClientTlsCert() {
bitField0_ = (bitField0_ & ~0x00000020);
clientTlsCert_ = getDefaultInstance().getClientTlsCert();
onChanged();
return this;
}
private com.google.protobuf.ByteString serverTlsCert_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes server_tls_cert = 7 [json_name = "serverTlsCert"];
* @return The serverTlsCert.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServerTlsCert() {
return serverTlsCert_;
}
/**
* bytes server_tls_cert = 7 [json_name = "serverTlsCert"];
* @param value The serverTlsCert to set.
* @return This builder for chaining.
*/
public Builder setServerTlsCert(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
serverTlsCert_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bytes server_tls_cert = 7 [json_name = "serverTlsCert"];
* @return This builder for chaining.
*/
public Builder clearServerTlsCert() {
bitField0_ = (bitField0_ & ~0x00000040);
serverTlsCert_ = getDefaultInstance().getServerTlsCert();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:common.Consenter)
}
// @@protoc_insertion_point(class_scope:common.Consenter)
private static final org.hyperledger.fabric.protos.common.Consenter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Consenter();
}
public static org.hyperledger.fabric.protos.common.Consenter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Consenter 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.common.Consenter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy