
org.hyperledger.fabric.protos.orderer.Configuration Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orderer/configuration.proto
package org.hyperledger.fabric.protos.orderer;
public final class Configuration {
private Configuration() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ConsensusTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.ConsensusType)
com.google.protobuf.MessageOrBuilder {
/**
* string type = 1;
*/
java.lang.String getType();
/**
* string type = 1;
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
* Protobuf type {@code orderer.ConsensusType}
*/
public static final class ConsensusType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.ConsensusType)
ConsensusTypeOrBuilder {
// Use ConsensusType.newBuilder() to construct.
private ConsensusType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusType() {
type_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConsensusType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.class, org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
* string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType other = (org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType) obj;
boolean result = true;
result = result && getType()
.equals(other.getType());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.Configuration.ConsensusType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.Configuration.ConsensusType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orderer.ConsensusType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.ConsensusType)
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.class, org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.getDefaultInstance();
}
public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType build() {
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType buildPartial() {
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType result = new org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType(this);
result.type_ = type_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType other) {
if (other == org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 1;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 1;
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 1;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.ConsensusType)
}
// @@protoc_insertion_point(class_scope:orderer.ConsensusType)
private static final org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType();
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConsensusType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsensusType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchSizeOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.BatchSize)
com.google.protobuf.MessageOrBuilder {
/**
*
* Simply specified as number of messages for now, in the future
* we may want to allow this to be specified by size in bytes
*
*
* uint32 max_message_count = 1;
*/
int getMaxMessageCount();
/**
*
* The byte count of the serialized messages in a batch cannot
* exceed this value.
*
*
* uint32 absolute_max_bytes = 2;
*/
int getAbsoluteMaxBytes();
/**
*
* The byte count of the serialized messages in a batch should not
* exceed this value.
*
*
* uint32 preferred_max_bytes = 3;
*/
int getPreferredMaxBytes();
}
/**
* Protobuf type {@code orderer.BatchSize}
*/
public static final class BatchSize extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.BatchSize)
BatchSizeOrBuilder {
// Use BatchSize.newBuilder() to construct.
private BatchSize(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchSize() {
maxMessageCount_ = 0;
absoluteMaxBytes_ = 0;
preferredMaxBytes_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BatchSize(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
maxMessageCount_ = input.readUInt32();
break;
}
case 16: {
absoluteMaxBytes_ = input.readUInt32();
break;
}
case 24: {
preferredMaxBytes_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.Builder.class);
}
public static final int MAX_MESSAGE_COUNT_FIELD_NUMBER = 1;
private int maxMessageCount_;
/**
*
* Simply specified as number of messages for now, in the future
* we may want to allow this to be specified by size in bytes
*
*
* uint32 max_message_count = 1;
*/
public int getMaxMessageCount() {
return maxMessageCount_;
}
public static final int ABSOLUTE_MAX_BYTES_FIELD_NUMBER = 2;
private int absoluteMaxBytes_;
/**
*
* The byte count of the serialized messages in a batch cannot
* exceed this value.
*
*
* uint32 absolute_max_bytes = 2;
*/
public int getAbsoluteMaxBytes() {
return absoluteMaxBytes_;
}
public static final int PREFERRED_MAX_BYTES_FIELD_NUMBER = 3;
private int preferredMaxBytes_;
/**
*
* The byte count of the serialized messages in a batch should not
* exceed this value.
*
*
* uint32 preferred_max_bytes = 3;
*/
public int getPreferredMaxBytes() {
return preferredMaxBytes_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxMessageCount_ != 0) {
output.writeUInt32(1, maxMessageCount_);
}
if (absoluteMaxBytes_ != 0) {
output.writeUInt32(2, absoluteMaxBytes_);
}
if (preferredMaxBytes_ != 0) {
output.writeUInt32(3, preferredMaxBytes_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxMessageCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, maxMessageCount_);
}
if (absoluteMaxBytes_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, absoluteMaxBytes_);
}
if (preferredMaxBytes_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, preferredMaxBytes_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Configuration.BatchSize)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize other = (org.hyperledger.fabric.protos.orderer.Configuration.BatchSize) obj;
boolean result = true;
result = result && (getMaxMessageCount()
== other.getMaxMessageCount());
result = result && (getAbsoluteMaxBytes()
== other.getAbsoluteMaxBytes());
result = result && (getPreferredMaxBytes()
== other.getPreferredMaxBytes());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MAX_MESSAGE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMaxMessageCount();
hash = (37 * hash) + ABSOLUTE_MAX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getAbsoluteMaxBytes();
hash = (37 * hash) + PREFERRED_MAX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getPreferredMaxBytes();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.Configuration.BatchSize parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.Configuration.BatchSize parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.Configuration.BatchSize prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orderer.BatchSize}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.BatchSize)
org.hyperledger.fabric.protos.orderer.Configuration.BatchSizeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
maxMessageCount_ = 0;
absoluteMaxBytes_ = 0;
preferredMaxBytes_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_descriptor;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.getDefaultInstance();
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize build() {
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize buildPartial() {
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize result = new org.hyperledger.fabric.protos.orderer.Configuration.BatchSize(this);
result.maxMessageCount_ = maxMessageCount_;
result.absoluteMaxBytes_ = absoluteMaxBytes_;
result.preferredMaxBytes_ = preferredMaxBytes_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.Configuration.BatchSize) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.BatchSize)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.BatchSize other) {
if (other == org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.getDefaultInstance()) return this;
if (other.getMaxMessageCount() != 0) {
setMaxMessageCount(other.getMaxMessageCount());
}
if (other.getAbsoluteMaxBytes() != 0) {
setAbsoluteMaxBytes(other.getAbsoluteMaxBytes());
}
if (other.getPreferredMaxBytes() != 0) {
setPreferredMaxBytes(other.getPreferredMaxBytes());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.Configuration.BatchSize) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int maxMessageCount_ ;
/**
*
* Simply specified as number of messages for now, in the future
* we may want to allow this to be specified by size in bytes
*
*
* uint32 max_message_count = 1;
*/
public int getMaxMessageCount() {
return maxMessageCount_;
}
/**
*
* Simply specified as number of messages for now, in the future
* we may want to allow this to be specified by size in bytes
*
*
* uint32 max_message_count = 1;
*/
public Builder setMaxMessageCount(int value) {
maxMessageCount_ = value;
onChanged();
return this;
}
/**
*
* Simply specified as number of messages for now, in the future
* we may want to allow this to be specified by size in bytes
*
*
* uint32 max_message_count = 1;
*/
public Builder clearMaxMessageCount() {
maxMessageCount_ = 0;
onChanged();
return this;
}
private int absoluteMaxBytes_ ;
/**
*
* The byte count of the serialized messages in a batch cannot
* exceed this value.
*
*
* uint32 absolute_max_bytes = 2;
*/
public int getAbsoluteMaxBytes() {
return absoluteMaxBytes_;
}
/**
*
* The byte count of the serialized messages in a batch cannot
* exceed this value.
*
*
* uint32 absolute_max_bytes = 2;
*/
public Builder setAbsoluteMaxBytes(int value) {
absoluteMaxBytes_ = value;
onChanged();
return this;
}
/**
*
* The byte count of the serialized messages in a batch cannot
* exceed this value.
*
*
* uint32 absolute_max_bytes = 2;
*/
public Builder clearAbsoluteMaxBytes() {
absoluteMaxBytes_ = 0;
onChanged();
return this;
}
private int preferredMaxBytes_ ;
/**
*
* The byte count of the serialized messages in a batch should not
* exceed this value.
*
*
* uint32 preferred_max_bytes = 3;
*/
public int getPreferredMaxBytes() {
return preferredMaxBytes_;
}
/**
*
* The byte count of the serialized messages in a batch should not
* exceed this value.
*
*
* uint32 preferred_max_bytes = 3;
*/
public Builder setPreferredMaxBytes(int value) {
preferredMaxBytes_ = value;
onChanged();
return this;
}
/**
*
* The byte count of the serialized messages in a batch should not
* exceed this value.
*
*
* uint32 preferred_max_bytes = 3;
*/
public Builder clearPreferredMaxBytes() {
preferredMaxBytes_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.BatchSize)
}
// @@protoc_insertion_point(class_scope:orderer.BatchSize)
private static final org.hyperledger.fabric.protos.orderer.Configuration.BatchSize DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.BatchSize();
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchSize parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchSize(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchTimeoutOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.BatchTimeout)
com.google.protobuf.MessageOrBuilder {
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
java.lang.String getTimeout();
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
com.google.protobuf.ByteString
getTimeoutBytes();
}
/**
* Protobuf type {@code orderer.BatchTimeout}
*/
public static final class BatchTimeout extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.BatchTimeout)
BatchTimeoutOrBuilder {
// Use BatchTimeout.newBuilder() to construct.
private BatchTimeout(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchTimeout() {
timeout_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BatchTimeout(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
timeout_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.Builder.class);
}
public static final int TIMEOUT_FIELD_NUMBER = 1;
private volatile java.lang.Object timeout_;
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public java.lang.String getTimeout() {
java.lang.Object ref = timeout_;
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();
timeout_ = s;
return s;
}
}
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public com.google.protobuf.ByteString
getTimeoutBytes() {
java.lang.Object ref = timeout_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeout_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTimeoutBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeout_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTimeoutBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeout_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout other = (org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout) obj;
boolean result = true;
result = result && getTimeout()
.equals(other.getTimeout());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getTimeout().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.Configuration.BatchTimeout parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.Configuration.BatchTimeout parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orderer.BatchTimeout}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.BatchTimeout)
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeoutOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
timeout_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.getDefaultInstance();
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout build() {
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout buildPartial() {
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout result = new org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout(this);
result.timeout_ = timeout_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout other) {
if (other == org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.getDefaultInstance()) return this;
if (!other.getTimeout().isEmpty()) {
timeout_ = other.timeout_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object timeout_ = "";
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public java.lang.String getTimeout() {
java.lang.Object ref = timeout_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timeout_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public com.google.protobuf.ByteString
getTimeoutBytes() {
java.lang.Object ref = timeout_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeout_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public Builder setTimeout(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timeout_ = value;
onChanged();
return this;
}
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public Builder clearTimeout() {
timeout_ = getDefaultInstance().getTimeout();
onChanged();
return this;
}
/**
*
* Any duration string parseable by ParseDuration():
* https://golang.org/pkg/time/#ParseDuration
*
*
* string timeout = 1;
*/
public Builder setTimeoutBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timeout_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.BatchTimeout)
}
// @@protoc_insertion_point(class_scope:orderer.BatchTimeout)
private static final org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout();
}
public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchTimeout parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchTimeout(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KafkaBrokersOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.KafkaBrokers)
com.google.protobuf.MessageOrBuilder {
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
java.util.List
getBrokersList();
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
int getBrokersCount();
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
java.lang.String getBrokers(int index);
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
com.google.protobuf.ByteString
getBrokersBytes(int index);
}
/**
*
* Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
* brokers an ordering service
*
*
* Protobuf type {@code orderer.KafkaBrokers}
*/
public static final class KafkaBrokers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.KafkaBrokers)
KafkaBrokersOrBuilder {
// Use KafkaBrokers.newBuilder() to construct.
private KafkaBrokers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KafkaBrokers() {
brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private KafkaBrokers(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
brokers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
brokers_.add(s);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
brokers_ = brokers_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.class, org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.Builder.class);
}
public static final int BROKERS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList brokers_;
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public com.google.protobuf.ProtocolStringList
getBrokersList() {
return brokers_;
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public int getBrokersCount() {
return brokers_.size();
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public java.lang.String getBrokers(int index) {
return brokers_.get(index);
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public com.google.protobuf.ByteString
getBrokersBytes(int index) {
return brokers_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < brokers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, brokers_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < brokers_.size(); i++) {
dataSize += computeStringSizeNoTag(brokers_.getRaw(i));
}
size += dataSize;
size += 1 * getBrokersList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers other = (org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers) obj;
boolean result = true;
result = result && getBrokersList()
.equals(other.getBrokersList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBrokersCount() > 0) {
hash = (37 * hash) + BROKERS_FIELD_NUMBER;
hash = (53 * hash) + getBrokersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.Configuration.KafkaBrokers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.Configuration.KafkaBrokers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
* brokers an ordering service
*
*
* Protobuf type {@code orderer.KafkaBrokers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.KafkaBrokers)
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.class, org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor;
}
public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.getDefaultInstance();
}
public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers build() {
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers buildPartial() {
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers result = new org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
brokers_ = brokers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.brokers_ = brokers_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers other) {
if (other == org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.getDefaultInstance()) return this;
if (!other.brokers_.isEmpty()) {
if (brokers_.isEmpty()) {
brokers_ = other.brokers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBrokersIsMutable();
brokers_.addAll(other.brokers_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureBrokersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
brokers_ = new com.google.protobuf.LazyStringArrayList(brokers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public com.google.protobuf.ProtocolStringList
getBrokersList() {
return brokers_.getUnmodifiableView();
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public int getBrokersCount() {
return brokers_.size();
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public java.lang.String getBrokers(int index) {
return brokers_.get(index);
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public com.google.protobuf.ByteString
getBrokersBytes(int index) {
return brokers_.getByteString(index);
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public Builder setBrokers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureBrokersIsMutable();
brokers_.set(index, value);
onChanged();
return this;
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public Builder addBrokers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureBrokersIsMutable();
brokers_.add(value);
onChanged();
return this;
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public Builder addAllBrokers(
java.lang.Iterable values) {
ensureBrokersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, brokers_);
onChanged();
return this;
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public Builder clearBrokers() {
brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Each broker here should be identified using the (IP|host):port notation,
* e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
*
*
* repeated string brokers = 1;
*/
public Builder addBrokersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureBrokersIsMutable();
brokers_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.KafkaBrokers)
}
// @@protoc_insertion_point(class_scope:orderer.KafkaBrokers)
private static final org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers();
}
public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public KafkaBrokers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KafkaBrokers(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChannelRestrictionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.ChannelRestrictions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The max count of channels to allow to be created, a value of 0 indicates no limit
*
*
* uint64 max_count = 1;
*/
long getMaxCount();
}
/**
*
* ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
*
*
* Protobuf type {@code orderer.ChannelRestrictions}
*/
public static final class ChannelRestrictions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.ChannelRestrictions)
ChannelRestrictionsOrBuilder {
// Use ChannelRestrictions.newBuilder() to construct.
private ChannelRestrictions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChannelRestrictions() {
maxCount_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ChannelRestrictions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
maxCount_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.class, org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.Builder.class);
}
public static final int MAX_COUNT_FIELD_NUMBER = 1;
private long maxCount_;
/**
*
* The max count of channels to allow to be created, a value of 0 indicates no limit
*
*
* uint64 max_count = 1;
*/
public long getMaxCount() {
return maxCount_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxCount_ != 0L) {
output.writeUInt64(1, maxCount_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, maxCount_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions other = (org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions) obj;
boolean result = true;
result = result && (getMaxCount()
== other.getMaxCount());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MAX_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.Configuration.ChannelRestrictions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.Configuration.ChannelRestrictions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
*
*
* Protobuf type {@code orderer.ChannelRestrictions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.ChannelRestrictions)
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.class, org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
maxCount_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.getDefaultInstance();
}
public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions build() {
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions buildPartial() {
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions result = new org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions(this);
result.maxCount_ = maxCount_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions other) {
if (other == org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.getDefaultInstance()) return this;
if (other.getMaxCount() != 0L) {
setMaxCount(other.getMaxCount());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long maxCount_ ;
/**
*
* The max count of channels to allow to be created, a value of 0 indicates no limit
*
*
* uint64 max_count = 1;
*/
public long getMaxCount() {
return maxCount_;
}
/**
*
* The max count of channels to allow to be created, a value of 0 indicates no limit
*
*
* uint64 max_count = 1;
*/
public Builder setMaxCount(long value) {
maxCount_ = value;
onChanged();
return this;
}
/**
*
* The max count of channels to allow to be created, a value of 0 indicates no limit
*
*
* uint64 max_count = 1;
*/
public Builder clearMaxCount() {
maxCount_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:orderer.ChannelRestrictions)
}
// @@protoc_insertion_point(class_scope:orderer.ChannelRestrictions)
private static final org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions();
}
public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ChannelRestrictions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChannelRestrictions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_ConsensusType_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_ConsensusType_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_BatchSize_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_BatchSize_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_BatchTimeout_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_BatchTimeout_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_KafkaBrokers_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_KafkaBrokers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_ChannelRestrictions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_ChannelRestrictions_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033orderer/configuration.proto\022\007orderer\"\035" +
"\n\rConsensusType\022\014\n\004type\030\001 \001(\t\"_\n\tBatchSi" +
"ze\022\031\n\021max_message_count\030\001 \001(\r\022\032\n\022absolut" +
"e_max_bytes\030\002 \001(\r\022\033\n\023preferred_max_bytes" +
"\030\003 \001(\r\"\037\n\014BatchTimeout\022\017\n\007timeout\030\001 \001(\t\"" +
"\037\n\014KafkaBrokers\022\017\n\007brokers\030\001 \003(\t\"(\n\023Chan" +
"nelRestrictions\022\021\n\tmax_count\030\001 \001(\004BU\n%or" +
"g.hyperledger.fabric.protos.ordererZ,git" +
"hub.com/hyperledger/fabric/protos/ordere" +
"rb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_orderer_ConsensusType_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_orderer_ConsensusType_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_ConsensusType_descriptor,
new java.lang.String[] { "Type", });
internal_static_orderer_BatchSize_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_orderer_BatchSize_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_BatchSize_descriptor,
new java.lang.String[] { "MaxMessageCount", "AbsoluteMaxBytes", "PreferredMaxBytes", });
internal_static_orderer_BatchTimeout_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_orderer_BatchTimeout_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_BatchTimeout_descriptor,
new java.lang.String[] { "Timeout", });
internal_static_orderer_KafkaBrokers_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_orderer_KafkaBrokers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_KafkaBrokers_descriptor,
new java.lang.String[] { "Brokers", });
internal_static_orderer_ChannelRestrictions_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_orderer_ChannelRestrictions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_ChannelRestrictions_descriptor,
new java.lang.String[] { "MaxCount", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy