io.bloombox.schema.ledger.LedgerNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ledger/Node.proto
package io.bloombox.schema.ledger;
public final class LedgerNode {
private LedgerNode() {}
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 NodeOperatorOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.ledger.NodeOperator)
com.google.protobuf.MessageOrBuilder {
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
java.lang.String getLabel();
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
*
* Specifies information about a given *node*'s operator, or, the organization behind the operation and maintenance of
* a given chain node.
*
*
* Protobuf type {@code bloombox.ledger.NodeOperator}
*/
public static final class NodeOperator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.ledger.NodeOperator)
NodeOperatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeOperator.newBuilder() to construct.
private NodeOperator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeOperator() {
name_ = "";
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeOperator(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_NodeOperator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_NodeOperator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.ledger.LedgerNode.NodeOperator.class, io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object label_;
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.bloombox.schema.ledger.LedgerNode.NodeOperator)) {
return super.equals(obj);
}
io.bloombox.schema.ledger.LedgerNode.NodeOperator other = (io.bloombox.schema.ledger.LedgerNode.NodeOperator) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getLabel()
.equals(other.getLabel())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator 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 io.bloombox.schema.ledger.LedgerNode.NodeOperator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator 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 io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.bloombox.schema.ledger.LedgerNode.NodeOperator prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies information about a given *node*'s operator, or, the organization behind the operation and maintenance of
* a given chain node.
*
*
* Protobuf type {@code bloombox.ledger.NodeOperator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.ledger.NodeOperator)
io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_NodeOperator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_NodeOperator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.ledger.LedgerNode.NodeOperator.class, io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder.class);
}
// Construct using io.bloombox.schema.ledger.LedgerNode.NodeOperator.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
label_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_NodeOperator_descriptor;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.NodeOperator getDefaultInstanceForType() {
return io.bloombox.schema.ledger.LedgerNode.NodeOperator.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.NodeOperator build() {
io.bloombox.schema.ledger.LedgerNode.NodeOperator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.NodeOperator buildPartial() {
io.bloombox.schema.ledger.LedgerNode.NodeOperator result = new io.bloombox.schema.ledger.LedgerNode.NodeOperator(this);
result.name_ = name_;
result.label_ = label_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.ledger.LedgerNode.NodeOperator) {
return mergeFrom((io.bloombox.schema.ledger.LedgerNode.NodeOperator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.ledger.LedgerNode.NodeOperator other) {
if (other == io.bloombox.schema.ledger.LedgerNode.NodeOperator.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.ledger.LedgerNode.NodeOperator parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.ledger.LedgerNode.NodeOperator) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Regular short name for a given operator.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* Human-readable label for this operator.
*
*
* string label = 2;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.ledger.NodeOperator)
}
// @@protoc_insertion_point(class_scope:bloombox.ledger.NodeOperator)
private static final io.bloombox.schema.ledger.LedgerNode.NodeOperator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.ledger.LedgerNode.NodeOperator();
}
public static io.bloombox.schema.ledger.LedgerNode.NodeOperator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeOperator parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeOperator(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.NodeOperator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.ledger.Node)
com.google.protobuf.MessageOrBuilder {
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
java.lang.String getLabel();
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
boolean hasOperator();
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
io.bloombox.schema.ledger.LedgerNode.NodeOperator getOperator();
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder getOperatorOrBuilder();
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
java.lang.String getEndpoint();
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
com.google.protobuf.ByteString
getEndpointBytes();
}
/**
*
* Defines the notion of a *node*, which operates the ledger by accepting transaction submissions, and nominating them
* for consensus within the network operator peer set.
*
*
* Protobuf type {@code bloombox.ledger.Node}
*/
public static final class Node extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.ledger.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Node() {
name_ = "";
label_ = "";
endpoint_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 26: {
io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder subBuilder = null;
if (operator_ != null) {
subBuilder = operator_.toBuilder();
}
operator_ = input.readMessage(io.bloombox.schema.ledger.LedgerNode.NodeOperator.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operator_);
operator_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
endpoint_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.ledger.LedgerNode.Node.class, io.bloombox.schema.ledger.LedgerNode.Node.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object label_;
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATOR_FIELD_NUMBER = 3;
private io.bloombox.schema.ledger.LedgerNode.NodeOperator operator_;
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public boolean hasOperator() {
return operator_ != null;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public io.bloombox.schema.ledger.LedgerNode.NodeOperator getOperator() {
return operator_ == null ? io.bloombox.schema.ledger.LedgerNode.NodeOperator.getDefaultInstance() : operator_;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder getOperatorOrBuilder() {
return getOperator();
}
public static final int ENDPOINT_FIELD_NUMBER = 4;
private volatile java.lang.Object endpoint_;
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public java.lang.String getEndpoint() {
java.lang.Object ref = endpoint_;
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();
endpoint_ = s;
return s;
}
}
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public com.google.protobuf.ByteString
getEndpointBytes() {
java.lang.Object ref = endpoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_);
}
if (operator_ != null) {
output.writeMessage(3, getOperator());
}
if (!getEndpointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpoint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
}
if (operator_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOperator());
}
if (!getEndpointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpoint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.bloombox.schema.ledger.LedgerNode.Node)) {
return super.equals(obj);
}
io.bloombox.schema.ledger.LedgerNode.Node other = (io.bloombox.schema.ledger.LedgerNode.Node) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getLabel()
.equals(other.getLabel())) return false;
if (hasOperator() != other.hasOperator()) return false;
if (hasOperator()) {
if (!getOperator()
.equals(other.getOperator())) return false;
}
if (!getEndpoint()
.equals(other.getEndpoint())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
if (hasOperator()) {
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getOperator().hashCode();
}
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.Node 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 io.bloombox.schema.ledger.LedgerNode.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.Node 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 io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.ledger.LedgerNode.Node parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.bloombox.schema.ledger.LedgerNode.Node prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Defines the notion of a *node*, which operates the ledger by accepting transaction submissions, and nominating them
* for consensus within the network operator peer set.
*
*
* Protobuf type {@code bloombox.ledger.Node}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.ledger.Node)
io.bloombox.schema.ledger.LedgerNode.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.ledger.LedgerNode.Node.class, io.bloombox.schema.ledger.LedgerNode.Node.Builder.class);
}
// Construct using io.bloombox.schema.ledger.LedgerNode.Node.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
label_ = "";
if (operatorBuilder_ == null) {
operator_ = null;
} else {
operator_ = null;
operatorBuilder_ = null;
}
endpoint_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.ledger.LedgerNode.internal_static_bloombox_ledger_Node_descriptor;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.Node getDefaultInstanceForType() {
return io.bloombox.schema.ledger.LedgerNode.Node.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.Node build() {
io.bloombox.schema.ledger.LedgerNode.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.Node buildPartial() {
io.bloombox.schema.ledger.LedgerNode.Node result = new io.bloombox.schema.ledger.LedgerNode.Node(this);
result.name_ = name_;
result.label_ = label_;
if (operatorBuilder_ == null) {
result.operator_ = operator_;
} else {
result.operator_ = operatorBuilder_.build();
}
result.endpoint_ = endpoint_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.ledger.LedgerNode.Node) {
return mergeFrom((io.bloombox.schema.ledger.LedgerNode.Node)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.ledger.LedgerNode.Node other) {
if (other == io.bloombox.schema.ledger.LedgerNode.Node.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (other.hasOperator()) {
mergeOperator(other.getOperator());
}
if (!other.getEndpoint().isEmpty()) {
endpoint_ = other.endpoint_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.ledger.LedgerNode.Node parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.ledger.LedgerNode.Node) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Regular short name for this node.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* Human-readable label for this node.
*
*
* string label = 2;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private io.bloombox.schema.ledger.LedgerNode.NodeOperator operator_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.ledger.LedgerNode.NodeOperator, io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder, io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder> operatorBuilder_;
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public boolean hasOperator() {
return operatorBuilder_ != null || operator_ != null;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public io.bloombox.schema.ledger.LedgerNode.NodeOperator getOperator() {
if (operatorBuilder_ == null) {
return operator_ == null ? io.bloombox.schema.ledger.LedgerNode.NodeOperator.getDefaultInstance() : operator_;
} else {
return operatorBuilder_.getMessage();
}
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public Builder setOperator(io.bloombox.schema.ledger.LedgerNode.NodeOperator value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operator_ = value;
onChanged();
} else {
operatorBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public Builder setOperator(
io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder builderForValue) {
if (operatorBuilder_ == null) {
operator_ = builderForValue.build();
onChanged();
} else {
operatorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public Builder mergeOperator(io.bloombox.schema.ledger.LedgerNode.NodeOperator value) {
if (operatorBuilder_ == null) {
if (operator_ != null) {
operator_ =
io.bloombox.schema.ledger.LedgerNode.NodeOperator.newBuilder(operator_).mergeFrom(value).buildPartial();
} else {
operator_ = value;
}
onChanged();
} else {
operatorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public Builder clearOperator() {
if (operatorBuilder_ == null) {
operator_ = null;
onChanged();
} else {
operator_ = null;
operatorBuilder_ = null;
}
return this;
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder getOperatorBuilder() {
onChanged();
return getOperatorFieldBuilder().getBuilder();
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
public io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder getOperatorOrBuilder() {
if (operatorBuilder_ != null) {
return operatorBuilder_.getMessageOrBuilder();
} else {
return operator_ == null ?
io.bloombox.schema.ledger.LedgerNode.NodeOperator.getDefaultInstance() : operator_;
}
}
/**
*
* Specifies information about
*
*
* .bloombox.ledger.NodeOperator operator = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.ledger.LedgerNode.NodeOperator, io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder, io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder>
getOperatorFieldBuilder() {
if (operatorBuilder_ == null) {
operatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.ledger.LedgerNode.NodeOperator, io.bloombox.schema.ledger.LedgerNode.NodeOperator.Builder, io.bloombox.schema.ledger.LedgerNode.NodeOperatorOrBuilder>(
getOperator(),
getParentForChildren(),
isClean());
operator_ = null;
}
return operatorBuilder_;
}
private java.lang.Object endpoint_ = "";
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public java.lang.String getEndpoint() {
java.lang.Object ref = endpoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endpoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public com.google.protobuf.ByteString
getEndpointBytes() {
java.lang.Object ref = endpoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public Builder setEndpoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpoint_ = value;
onChanged();
return this;
}
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public Builder clearEndpoint() {
endpoint_ = getDefaultInstance().getEndpoint();
onChanged();
return this;
}
/**
*
* Specifies the endpoint, in DNS form, that defines this node.
*
*
* string endpoint = 4;
*/
public Builder setEndpointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endpoint_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.ledger.Node)
}
// @@protoc_insertion_point(class_scope:bloombox.ledger.Node)
private static final io.bloombox.schema.ledger.LedgerNode.Node DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.ledger.LedgerNode.Node();
}
public static io.bloombox.schema.ledger.LedgerNode.Node getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Node parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Node(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.bloombox.schema.ledger.LedgerNode.Node getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bloombox_ledger_NodeOperator_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bloombox_ledger_NodeOperator_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bloombox_ledger_Node_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bloombox_ledger_Node_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\021ledger/Node.proto\022\017bloombox.ledger\"+\n\014" +
"NodeOperator\022\014\n\004name\030\001 \001(\t\022\r\n\005label\030\002 \001(" +
"\t\"f\n\004Node\022\014\n\004name\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022/" +
"\n\010operator\030\003 \001(\0132\035.bloombox.ledger.NodeO" +
"perator\022\020\n\010endpoint\030\004 \001(\tB1\n\031io.bloombox" +
".schema.ledgerB\nLedgerNodeH\001P\000\242\002\003BBSb\006pr" +
"oto3"
};
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_bloombox_ledger_NodeOperator_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bloombox_ledger_NodeOperator_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bloombox_ledger_NodeOperator_descriptor,
new java.lang.String[] { "Name", "Label", });
internal_static_bloombox_ledger_Node_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_bloombox_ledger_Node_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bloombox_ledger_Node_descriptor,
new java.lang.String[] { "Name", "Label", "Operator", "Endpoint", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy