![JAR search and dependency download from the Maven repository](/logo.png)
org.hyperledger.protos.Api Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-java-sdk Show documentation
Show all versions of fabric-java-sdk Show documentation
This is a fork of Hyperledger Fabric fabric-sdk-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api.proto
package org.hyperledger.protos;
public final class Api {
private Api() {}
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 BlockNumberOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.BlockNumber)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint64 number = 1;
*/
long getNumber();
}
/**
*
* Specifies the block number to be returned from the blockchain.
*
*
* Protobuf type {@code protos.BlockNumber}
*/
public static final class BlockNumber extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.BlockNumber)
BlockNumberOrBuilder {
// Use BlockNumber.newBuilder() to construct.
private BlockNumber(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockNumber() {
number_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BlockNumber(
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: {
number_ = 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.protos.Api.internal_static_protos_BlockNumber_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Api.internal_static_protos_BlockNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Api.BlockNumber.class, org.hyperledger.protos.Api.BlockNumber.Builder.class);
}
public static final int NUMBER_FIELD_NUMBER = 1;
private long number_;
/**
* optional uint64 number = 1;
*/
public long getNumber() {
return number_;
}
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 (number_ != 0L) {
output.writeUInt64(1, number_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (number_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, number_);
}
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.protos.Api.BlockNumber)) {
return super.equals(obj);
}
org.hyperledger.protos.Api.BlockNumber other = (org.hyperledger.protos.Api.BlockNumber) obj;
boolean result = true;
result = result && (getNumber()
== other.getNumber());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumber());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Api.BlockNumber parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Api.BlockNumber 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.protos.Api.BlockNumber parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Api.BlockNumber parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Api.BlockNumber parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockNumber 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.protos.Api.BlockNumber parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockNumber 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.protos.Api.BlockNumber parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockNumber 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.protos.Api.BlockNumber 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;
}
/**
*
* Specifies the block number to be returned from the blockchain.
*
*
* Protobuf type {@code protos.BlockNumber}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.BlockNumber)
org.hyperledger.protos.Api.BlockNumberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Api.internal_static_protos_BlockNumber_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Api.internal_static_protos_BlockNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Api.BlockNumber.class, org.hyperledger.protos.Api.BlockNumber.Builder.class);
}
// Construct using org.hyperledger.protos.Api.BlockNumber.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();
number_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Api.internal_static_protos_BlockNumber_descriptor;
}
public org.hyperledger.protos.Api.BlockNumber getDefaultInstanceForType() {
return org.hyperledger.protos.Api.BlockNumber.getDefaultInstance();
}
public org.hyperledger.protos.Api.BlockNumber build() {
org.hyperledger.protos.Api.BlockNumber result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Api.BlockNumber buildPartial() {
org.hyperledger.protos.Api.BlockNumber result = new org.hyperledger.protos.Api.BlockNumber(this);
result.number_ = number_;
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.protos.Api.BlockNumber) {
return mergeFrom((org.hyperledger.protos.Api.BlockNumber)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Api.BlockNumber other) {
if (other == org.hyperledger.protos.Api.BlockNumber.getDefaultInstance()) return this;
if (other.getNumber() != 0L) {
setNumber(other.getNumber());
}
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.protos.Api.BlockNumber parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Api.BlockNumber) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long number_ ;
/**
* optional uint64 number = 1;
*/
public long getNumber() {
return number_;
}
/**
* optional uint64 number = 1;
*/
public Builder setNumber(long value) {
number_ = value;
onChanged();
return this;
}
/**
* optional uint64 number = 1;
*/
public Builder clearNumber() {
number_ = 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:protos.BlockNumber)
}
// @@protoc_insertion_point(class_scope:protos.BlockNumber)
private static final org.hyperledger.protos.Api.BlockNumber DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Api.BlockNumber();
}
public static org.hyperledger.protos.Api.BlockNumber getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BlockNumber parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockNumber(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.protos.Api.BlockNumber getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockCountOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.BlockCount)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint64 count = 1;
*/
long getCount();
}
/**
*
* Specifies the current number of blocks in the blockchain.
*
*
* Protobuf type {@code protos.BlockCount}
*/
public static final class BlockCount extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.BlockCount)
BlockCountOrBuilder {
// Use BlockCount.newBuilder() to construct.
private BlockCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockCount() {
count_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BlockCount(
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: {
count_ = 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.protos.Api.internal_static_protos_BlockCount_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Api.internal_static_protos_BlockCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Api.BlockCount.class, org.hyperledger.protos.Api.BlockCount.Builder.class);
}
public static final int COUNT_FIELD_NUMBER = 1;
private long count_;
/**
* optional uint64 count = 1;
*/
public long getCount() {
return count_;
}
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 (count_ != 0L) {
output.writeUInt64(1, count_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, count_);
}
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.protos.Api.BlockCount)) {
return super.equals(obj);
}
org.hyperledger.protos.Api.BlockCount other = (org.hyperledger.protos.Api.BlockCount) obj;
boolean result = true;
result = result && (getCount()
== other.getCount());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.protos.Api.BlockCount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Api.BlockCount 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.protos.Api.BlockCount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.protos.Api.BlockCount parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.protos.Api.BlockCount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockCount 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.protos.Api.BlockCount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockCount 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.protos.Api.BlockCount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.protos.Api.BlockCount 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.protos.Api.BlockCount 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;
}
/**
*
* Specifies the current number of blocks in the blockchain.
*
*
* Protobuf type {@code protos.BlockCount}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.BlockCount)
org.hyperledger.protos.Api.BlockCountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.protos.Api.internal_static_protos_BlockCount_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.protos.Api.internal_static_protos_BlockCount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.protos.Api.BlockCount.class, org.hyperledger.protos.Api.BlockCount.Builder.class);
}
// Construct using org.hyperledger.protos.Api.BlockCount.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();
count_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.protos.Api.internal_static_protos_BlockCount_descriptor;
}
public org.hyperledger.protos.Api.BlockCount getDefaultInstanceForType() {
return org.hyperledger.protos.Api.BlockCount.getDefaultInstance();
}
public org.hyperledger.protos.Api.BlockCount build() {
org.hyperledger.protos.Api.BlockCount result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.protos.Api.BlockCount buildPartial() {
org.hyperledger.protos.Api.BlockCount result = new org.hyperledger.protos.Api.BlockCount(this);
result.count_ = count_;
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.protos.Api.BlockCount) {
return mergeFrom((org.hyperledger.protos.Api.BlockCount)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.protos.Api.BlockCount other) {
if (other == org.hyperledger.protos.Api.BlockCount.getDefaultInstance()) return this;
if (other.getCount() != 0L) {
setCount(other.getCount());
}
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.protos.Api.BlockCount parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.protos.Api.BlockCount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long count_ ;
/**
* optional uint64 count = 1;
*/
public long getCount() {
return count_;
}
/**
* optional uint64 count = 1;
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
* optional uint64 count = 1;
*/
public Builder clearCount() {
count_ = 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:protos.BlockCount)
}
// @@protoc_insertion_point(class_scope:protos.BlockCount)
private static final org.hyperledger.protos.Api.BlockCount DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.protos.Api.BlockCount();
}
public static org.hyperledger.protos.Api.BlockCount getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BlockCount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockCount(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.protos.Api.BlockCount getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_BlockNumber_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_BlockNumber_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_BlockCount_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_BlockCount_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\tapi.proto\022\006protos\032\014fabric.proto\032\033googl" +
"e/protobuf/empty.proto\"\035\n\013BlockNumber\022\016\n" +
"\006number\030\001 \001(\004\"\033\n\nBlockCount\022\r\n\005count\030\001 \001" +
"(\0042\207\002\n\tOpenchain\022E\n\021GetBlockchainInfo\022\026." +
"google.protobuf.Empty\032\026.protos.Blockchai" +
"nInfo\"\000\0228\n\020GetBlockByNumber\022\023.protos.Blo" +
"ckNumber\032\r.protos.Block\"\000\022=\n\rGetBlockCou" +
"nt\022\026.google.protobuf.Empty\032\022.protos.Bloc" +
"kCount\"\000\022:\n\010GetPeers\022\026.google.protobuf.E" +
"mpty\032\024.protos.PeersMessage\"\000B\030\n\026org.hype",
"rledger.protosb\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[] {
org.hyperledger.protos.Fabric.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
}, assigner);
internal_static_protos_BlockNumber_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protos_BlockNumber_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_BlockNumber_descriptor,
new java.lang.String[] { "Number", });
internal_static_protos_BlockCount_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protos_BlockCount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_BlockCount_descriptor,
new java.lang.String[] { "Count", });
org.hyperledger.protos.Fabric.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy