org.vision.visionjsdk.api.GrpcAPI Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api/api.proto
package org.vision.visionjsdk.api;
public final class GrpcAPI {
private GrpcAPI() {}
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 EmptyMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EmptyMessage)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code protocol.EmptyMessage}
*/
public static final class EmptyMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EmptyMessage)
EmptyMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EmptyMessage.newBuilder() to construct.
private EmptyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EmptyMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EmptyMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EmptyMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EmptyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.class, org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 org.vision.visionjsdk.api.GrpcAPI.EmptyMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage other = (org.vision.visionjsdk.api.GrpcAPI.EmptyMessage) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage 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.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage 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.vision.visionjsdk.api.GrpcAPI.EmptyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage 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(org.vision.visionjsdk.api.GrpcAPI.EmptyMessage 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;
}
/**
* Protobuf type {@code protocol.EmptyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EmptyMessage)
org.vision.visionjsdk.api.GrpcAPI.EmptyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EmptyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.class, org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EmptyMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EmptyMessage build() {
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EmptyMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage result = new org.vision.visionjsdk.api.GrpcAPI.EmptyMessage(this);
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 org.vision.visionjsdk.api.GrpcAPI.EmptyMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.EmptyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.EmptyMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.EmptyMessage.getDefaultInstance()) return this;
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 {
org.vision.visionjsdk.api.GrpcAPI.EmptyMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.EmptyMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:protocol.EmptyMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EmptyMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.EmptyMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.EmptyMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.EmptyMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EmptyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EmptyMessage(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 org.vision.visionjsdk.api.GrpcAPI.EmptyMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NumberMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.NumberMessage)
com.google.protobuf.MessageOrBuilder {
/**
* int64 num = 1;
* @return The num.
*/
long getNum();
}
/**
* Protobuf type {@code protocol.NumberMessage}
*/
public static final class NumberMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.NumberMessage)
NumberMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use NumberMessage.newBuilder() to construct.
private NumberMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NumberMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NumberMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NumberMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
num_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NumberMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.NumberMessage.class, org.vision.visionjsdk.api.GrpcAPI.NumberMessage.Builder.class);
}
public static final int NUM_FIELD_NUMBER = 1;
private long num_;
/**
* int64 num = 1;
* @return The num.
*/
@java.lang.Override
public long getNum() {
return num_;
}
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 (num_ != 0L) {
output.writeInt64(1, num_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (num_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, num_);
}
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 org.vision.visionjsdk.api.GrpcAPI.NumberMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.NumberMessage other = (org.vision.visionjsdk.api.GrpcAPI.NumberMessage) obj;
if (getNum()
!= other.getNum()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNum());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage 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.vision.visionjsdk.api.GrpcAPI.NumberMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage 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.vision.visionjsdk.api.GrpcAPI.NumberMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage 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(org.vision.visionjsdk.api.GrpcAPI.NumberMessage 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;
}
/**
* Protobuf type {@code protocol.NumberMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.NumberMessage)
org.vision.visionjsdk.api.GrpcAPI.NumberMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NumberMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.NumberMessage.class, org.vision.visionjsdk.api.GrpcAPI.NumberMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.NumberMessage.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();
num_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NumberMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.NumberMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NumberMessage build() {
org.vision.visionjsdk.api.GrpcAPI.NumberMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NumberMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.NumberMessage result = new org.vision.visionjsdk.api.GrpcAPI.NumberMessage(this);
result.num_ = num_;
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 org.vision.visionjsdk.api.GrpcAPI.NumberMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.NumberMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.NumberMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.NumberMessage.getDefaultInstance()) return this;
if (other.getNum() != 0L) {
setNum(other.getNum());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.NumberMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.NumberMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long num_ ;
/**
* int64 num = 1;
* @return The num.
*/
@java.lang.Override
public long getNum() {
return num_;
}
/**
* int64 num = 1;
* @param value The num to set.
* @return This builder for chaining.
*/
public Builder setNum(long value) {
num_ = value;
onChanged();
return this;
}
/**
* int64 num = 1;
* @return This builder for chaining.
*/
public Builder clearNum() {
num_ = 0L;
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:protocol.NumberMessage)
}
// @@protoc_insertion_point(class_scope:protocol.NumberMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.NumberMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.NumberMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.NumberMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NumberMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NumberMessage(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 org.vision.visionjsdk.api.GrpcAPI.NumberMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BytesMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.BytesMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code protocol.BytesMessage}
*/
public static final class BytesMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.BytesMessage)
BytesMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use BytesMessage.newBuilder() to construct.
private BytesMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BytesMessage() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BytesMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BytesMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
value_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BytesMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.BytesMessage.class, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
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 (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
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 org.vision.visionjsdk.api.GrpcAPI.BytesMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.BytesMessage other = (org.vision.visionjsdk.api.GrpcAPI.BytesMessage) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage 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.vision.visionjsdk.api.GrpcAPI.BytesMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage 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.vision.visionjsdk.api.GrpcAPI.BytesMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage 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(org.vision.visionjsdk.api.GrpcAPI.BytesMessage 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;
}
/**
* Protobuf type {@code protocol.BytesMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.BytesMessage)
org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BytesMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.BytesMessage.class, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.BytesMessage.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();
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.BytesMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage build() {
org.vision.visionjsdk.api.GrpcAPI.BytesMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.BytesMessage result = new org.vision.visionjsdk.api.GrpcAPI.BytesMessage(this);
result.value_ = value_;
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 org.vision.visionjsdk.api.GrpcAPI.BytesMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.BytesMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.BytesMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.BytesMessage.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.BytesMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.BytesMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:protocol.BytesMessage)
}
// @@protoc_insertion_point(class_scope:protocol.BytesMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.BytesMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.BytesMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.BytesMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BytesMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BytesMessage(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 org.vision.visionjsdk.api.GrpcAPI.BytesMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockLimitOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.BlockLimit)
com.google.protobuf.MessageOrBuilder {
/**
* int64 startNum = 1;
* @return The startNum.
*/
long getStartNum();
/**
* int64 endNum = 2;
* @return The endNum.
*/
long getEndNum();
}
/**
* Protobuf type {@code protocol.BlockLimit}
*/
public static final class BlockLimit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.BlockLimit)
BlockLimitOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockLimit.newBuilder() to construct.
private BlockLimit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockLimit() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockLimit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockLimit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
startNum_ = input.readInt64();
break;
}
case 16: {
endNum_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BlockLimit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.BlockLimit.class, org.vision.visionjsdk.api.GrpcAPI.BlockLimit.Builder.class);
}
public static final int STARTNUM_FIELD_NUMBER = 1;
private long startNum_;
/**
* int64 startNum = 1;
* @return The startNum.
*/
@java.lang.Override
public long getStartNum() {
return startNum_;
}
public static final int ENDNUM_FIELD_NUMBER = 2;
private long endNum_;
/**
* int64 endNum = 2;
* @return The endNum.
*/
@java.lang.Override
public long getEndNum() {
return endNum_;
}
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 (startNum_ != 0L) {
output.writeInt64(1, startNum_);
}
if (endNum_ != 0L) {
output.writeInt64(2, endNum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startNum_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startNum_);
}
if (endNum_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, endNum_);
}
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 org.vision.visionjsdk.api.GrpcAPI.BlockLimit)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.BlockLimit other = (org.vision.visionjsdk.api.GrpcAPI.BlockLimit) obj;
if (getStartNum()
!= other.getStartNum()) return false;
if (getEndNum()
!= other.getEndNum()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STARTNUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartNum());
hash = (37 * hash) + ENDNUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndNum());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit 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.vision.visionjsdk.api.GrpcAPI.BlockLimit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit 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.vision.visionjsdk.api.GrpcAPI.BlockLimit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit 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(org.vision.visionjsdk.api.GrpcAPI.BlockLimit 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;
}
/**
* Protobuf type {@code protocol.BlockLimit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.BlockLimit)
org.vision.visionjsdk.api.GrpcAPI.BlockLimitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BlockLimit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.BlockLimit.class, org.vision.visionjsdk.api.GrpcAPI.BlockLimit.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.BlockLimit.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();
startNum_ = 0L;
endNum_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BlockLimit getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.BlockLimit.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BlockLimit build() {
org.vision.visionjsdk.api.GrpcAPI.BlockLimit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BlockLimit buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.BlockLimit result = new org.vision.visionjsdk.api.GrpcAPI.BlockLimit(this);
result.startNum_ = startNum_;
result.endNum_ = endNum_;
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 org.vision.visionjsdk.api.GrpcAPI.BlockLimit) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.BlockLimit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.BlockLimit other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.BlockLimit.getDefaultInstance()) return this;
if (other.getStartNum() != 0L) {
setStartNum(other.getStartNum());
}
if (other.getEndNum() != 0L) {
setEndNum(other.getEndNum());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.BlockLimit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.BlockLimit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startNum_ ;
/**
* int64 startNum = 1;
* @return The startNum.
*/
@java.lang.Override
public long getStartNum() {
return startNum_;
}
/**
* int64 startNum = 1;
* @param value The startNum to set.
* @return This builder for chaining.
*/
public Builder setStartNum(long value) {
startNum_ = value;
onChanged();
return this;
}
/**
* int64 startNum = 1;
* @return This builder for chaining.
*/
public Builder clearStartNum() {
startNum_ = 0L;
onChanged();
return this;
}
private long endNum_ ;
/**
* int64 endNum = 2;
* @return The endNum.
*/
@java.lang.Override
public long getEndNum() {
return endNum_;
}
/**
* int64 endNum = 2;
* @param value The endNum to set.
* @return This builder for chaining.
*/
public Builder setEndNum(long value) {
endNum_ = value;
onChanged();
return this;
}
/**
* int64 endNum = 2;
* @return This builder for chaining.
*/
public Builder clearEndNum() {
endNum_ = 0L;
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:protocol.BlockLimit)
}
// @@protoc_insertion_point(class_scope:protocol.BlockLimit)
private static final org.vision.visionjsdk.api.GrpcAPI.BlockLimit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.BlockLimit();
}
public static org.vision.visionjsdk.api.GrpcAPI.BlockLimit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockLimit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockLimit(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 org.vision.visionjsdk.api.GrpcAPI.BlockLimit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountAddressMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.AccountAddressMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 3;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
*
* NOTE: This is used to replace the design flaw of GetAccount.
*
*
* Protobuf type {@code protocol.AccountAddressMessage}
*/
public static final class AccountAddressMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.AccountAddressMessage)
AccountAddressMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountAddressMessage.newBuilder() to construct.
private AccountAddressMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountAddressMessage() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountAddressMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountAddressMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 26: {
address_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.class, org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 3;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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 (!address_.isEmpty()) {
output.writeBytes(3, address_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, address_);
}
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 org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage other = (org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage 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.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage 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.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage 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(org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage 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;
}
/**
*
* NOTE: This is used to replace the design flaw of GetAccount.
*
*
* Protobuf type {@code protocol.AccountAddressMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.AccountAddressMessage)
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.class, org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.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();
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountAddressMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage build() {
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage result = new org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage(this);
result.address_ = address_;
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 org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 3;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 3;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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:protocol.AccountAddressMessage)
}
// @@protoc_insertion_point(class_scope:protocol.AccountAddressMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountAddressMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccountAddressMessage(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 org.vision.visionjsdk.api.GrpcAPI.AccountAddressMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountIdMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.AccountIdMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 23;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code protocol.AccountIdMessage}
*/
public static final class AccountIdMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.AccountIdMessage)
AccountIdMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountIdMessage.newBuilder() to construct.
private AccountIdMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountIdMessage() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountIdMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountIdMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 186: {
id_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountIdMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.class, org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.Builder.class);
}
public static final int ID_FIELD_NUMBER = 23;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 23;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(23, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(23, id_);
}
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 org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage other = (org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage) obj;
if (!getId()
.equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage 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.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage 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.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage 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(org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage 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;
}
/**
* Protobuf type {@code protocol.AccountIdMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.AccountIdMessage)
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountIdMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.class, org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.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();
id_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_AccountIdMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage build() {
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage result = new org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage(this);
result.id_ = id_;
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 org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 23;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 23;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 23;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
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:protocol.AccountIdMessage)
}
// @@protoc_insertion_point(class_scope:protocol.AccountIdMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountIdMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccountIdMessage(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 org.vision.visionjsdk.api.GrpcAPI.AccountIdMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PaginatedMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.PaginatedMessage)
com.google.protobuf.MessageOrBuilder {
/**
* int64 offset = 1;
* @return The offset.
*/
long getOffset();
/**
* int64 limit = 2;
* @return The limit.
*/
long getLimit();
}
/**
*
* FLAW: Paginated APIs are usless.
*
*
* Protobuf type {@code protocol.PaginatedMessage}
*/
public static final class PaginatedMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.PaginatedMessage)
PaginatedMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use PaginatedMessage.newBuilder() to construct.
private PaginatedMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PaginatedMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PaginatedMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PaginatedMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
offset_ = input.readInt64();
break;
}
case 16: {
limit_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaginatedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.class, org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.Builder.class);
}
public static final int OFFSET_FIELD_NUMBER = 1;
private long offset_;
/**
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 2;
private long limit_;
/**
* int64 limit = 2;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
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 (offset_ != 0L) {
output.writeInt64(1, offset_);
}
if (limit_ != 0L) {
output.writeInt64(2, limit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, offset_);
}
if (limit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, limit_);
}
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 org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage other = (org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage) obj;
if (getOffset()
!= other.getOffset()) return false;
if (getLimit()
!= other.getLimit()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLimit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage 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.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage 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.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage 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(org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage 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;
}
/**
*
* FLAW: Paginated APIs are usless.
*
*
* Protobuf type {@code protocol.PaginatedMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.PaginatedMessage)
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaginatedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.class, org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.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();
offset_ = 0L;
limit_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaginatedMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage build() {
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage result = new org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage(this);
result.offset_ = offset_;
result.limit_ = limit_;
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 org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage.getDefaultInstance()) return this;
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
if (other.getLimit() != 0L) {
setLimit(other.getLimit());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long offset_ ;
/**
* int64 offset = 1;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
* int64 offset = 1;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
* int64 offset = 1;
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
private long limit_ ;
/**
* int64 limit = 2;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
/**
* int64 limit = 2;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(long value) {
limit_ = value;
onChanged();
return this;
}
/**
* int64 limit = 2;
* @return This builder for chaining.
*/
public Builder clearLimit() {
limit_ = 0L;
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:protocol.PaginatedMessage)
}
// @@protoc_insertion_point(class_scope:protocol.PaginatedMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PaginatedMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PaginatedMessage(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 org.vision.visionjsdk.api.GrpcAPI.PaginatedMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
com.google.protobuf.ByteString getPassPhrase();
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
com.google.protobuf.ByteString getToAddress();
/**
* int64 amount = 3;
* @return The amount.
*/
long getAmount();
}
/**
* Protobuf type {@code protocol.EasyTransferMessage}
*/
public static final class EasyTransferMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EasyTransferMessage)
EasyTransferMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EasyTransferMessage.newBuilder() to construct.
private EasyTransferMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EasyTransferMessage() {
passPhrase_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EasyTransferMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EasyTransferMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
passPhrase_ = input.readBytes();
break;
}
case 18: {
toAddress_ = input.readBytes();
break;
}
case 24: {
amount_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.Builder.class);
}
public static final int PASSPHRASE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString passPhrase_;
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPassPhrase() {
return passPhrase_;
}
public static final int TOADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString toAddress_;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
public static final int AMOUNT_FIELD_NUMBER = 3;
private long amount_;
/**
* int64 amount = 3;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
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 (!passPhrase_.isEmpty()) {
output.writeBytes(1, passPhrase_);
}
if (!toAddress_.isEmpty()) {
output.writeBytes(2, toAddress_);
}
if (amount_ != 0L) {
output.writeInt64(3, amount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!passPhrase_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, passPhrase_);
}
if (!toAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, toAddress_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, amount_);
}
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage other = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage) obj;
if (!getPassPhrase()
.equals(other.getPassPhrase())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (getAmount()
!= other.getAmount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER;
hash = (53 * hash) + getPassPhrase().hashCode();
hash = (37 * hash) + TOADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getToAddress().hashCode();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage 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(org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage 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;
}
/**
* Protobuf type {@code protocol.EasyTransferMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EasyTransferMessage)
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.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();
passPhrase_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
amount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage build() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage result = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage(this);
result.passPhrase_ = passPhrase_;
result.toAddress_ = toAddress_;
result.amount_ = amount_;
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage.getDefaultInstance()) return this;
if (other.getPassPhrase() != com.google.protobuf.ByteString.EMPTY) {
setPassPhrase(other.getPassPhrase());
}
if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) {
setToAddress(other.getToAddress());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPassPhrase() {
return passPhrase_;
}
/**
* bytes passPhrase = 1;
* @param value The passPhrase to set.
* @return This builder for chaining.
*/
public Builder setPassPhrase(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
passPhrase_ = value;
onChanged();
return this;
}
/**
* bytes passPhrase = 1;
* @return This builder for chaining.
*/
public Builder clearPassPhrase() {
passPhrase_ = getDefaultInstance().getPassPhrase();
onChanged();
return this;
}
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
/**
* bytes toAddress = 2;
* @param value The toAddress to set.
* @return This builder for chaining.
*/
public Builder setToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
toAddress_ = value;
onChanged();
return this;
}
/**
* bytes toAddress = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
toAddress_ = getDefaultInstance().getToAddress();
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 3;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 3;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 3;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
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:protocol.EasyTransferMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EasyTransferMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EasyTransferMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EasyTransferMessage(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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferAssetMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferAssetMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
com.google.protobuf.ByteString getPassPhrase();
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
com.google.protobuf.ByteString getToAddress();
/**
* string assetId = 3;
* @return The assetId.
*/
java.lang.String getAssetId();
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
com.google.protobuf.ByteString
getAssetIdBytes();
/**
* int64 amount = 4;
* @return The amount.
*/
long getAmount();
}
/**
* Protobuf type {@code protocol.EasyTransferAssetMessage}
*/
public static final class EasyTransferAssetMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EasyTransferAssetMessage)
EasyTransferAssetMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EasyTransferAssetMessage.newBuilder() to construct.
private EasyTransferAssetMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EasyTransferAssetMessage() {
passPhrase_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
assetId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EasyTransferAssetMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EasyTransferAssetMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
passPhrase_ = input.readBytes();
break;
}
case 18: {
toAddress_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
assetId_ = s;
break;
}
case 32: {
amount_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.Builder.class);
}
public static final int PASSPHRASE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString passPhrase_;
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPassPhrase() {
return passPhrase_;
}
public static final int TOADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString toAddress_;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
public static final int ASSETID_FIELD_NUMBER = 3;
private volatile java.lang.Object assetId_;
/**
* string assetId = 3;
* @return The assetId.
*/
@java.lang.Override
public java.lang.String getAssetId() {
java.lang.Object ref = assetId_;
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();
assetId_ = s;
return s;
}
}
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAssetIdBytes() {
java.lang.Object ref = assetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AMOUNT_FIELD_NUMBER = 4;
private long amount_;
/**
* int64 amount = 4;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
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 (!passPhrase_.isEmpty()) {
output.writeBytes(1, passPhrase_);
}
if (!toAddress_.isEmpty()) {
output.writeBytes(2, toAddress_);
}
if (!getAssetIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetId_);
}
if (amount_ != 0L) {
output.writeInt64(4, amount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!passPhrase_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, passPhrase_);
}
if (!toAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, toAddress_);
}
if (!getAssetIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assetId_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, amount_);
}
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage other = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage) obj;
if (!getPassPhrase()
.equals(other.getPassPhrase())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (!getAssetId()
.equals(other.getAssetId())) return false;
if (getAmount()
!= other.getAmount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER;
hash = (53 * hash) + getPassPhrase().hashCode();
hash = (37 * hash) + TOADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getToAddress().hashCode();
hash = (37 * hash) + ASSETID_FIELD_NUMBER;
hash = (53 * hash) + getAssetId().hashCode();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage 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(org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage 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;
}
/**
* Protobuf type {@code protocol.EasyTransferAssetMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EasyTransferAssetMessage)
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.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();
passPhrase_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
assetId_ = "";
amount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage build() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage result = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage(this);
result.passPhrase_ = passPhrase_;
result.toAddress_ = toAddress_;
result.assetId_ = assetId_;
result.amount_ = amount_;
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage.getDefaultInstance()) return this;
if (other.getPassPhrase() != com.google.protobuf.ByteString.EMPTY) {
setPassPhrase(other.getPassPhrase());
}
if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) {
setToAddress(other.getToAddress());
}
if (!other.getAssetId().isEmpty()) {
assetId_ = other.assetId_;
onChanged();
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString passPhrase_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes passPhrase = 1;
* @return The passPhrase.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPassPhrase() {
return passPhrase_;
}
/**
* bytes passPhrase = 1;
* @param value The passPhrase to set.
* @return This builder for chaining.
*/
public Builder setPassPhrase(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
passPhrase_ = value;
onChanged();
return this;
}
/**
* bytes passPhrase = 1;
* @return This builder for chaining.
*/
public Builder clearPassPhrase() {
passPhrase_ = getDefaultInstance().getPassPhrase();
onChanged();
return this;
}
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
/**
* bytes toAddress = 2;
* @param value The toAddress to set.
* @return This builder for chaining.
*/
public Builder setToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
toAddress_ = value;
onChanged();
return this;
}
/**
* bytes toAddress = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
toAddress_ = getDefaultInstance().getToAddress();
onChanged();
return this;
}
private java.lang.Object assetId_ = "";
/**
* string assetId = 3;
* @return The assetId.
*/
public java.lang.String getAssetId() {
java.lang.Object ref = assetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
public com.google.protobuf.ByteString
getAssetIdBytes() {
java.lang.Object ref = assetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string assetId = 3;
* @param value The assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
assetId_ = value;
onChanged();
return this;
}
/**
* string assetId = 3;
* @return This builder for chaining.
*/
public Builder clearAssetId() {
assetId_ = getDefaultInstance().getAssetId();
onChanged();
return this;
}
/**
* string assetId = 3;
* @param value The bytes for assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
assetId_ = value;
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 4;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 4;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 4;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
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:protocol.EasyTransferAssetMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EasyTransferAssetMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EasyTransferAssetMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EasyTransferAssetMessage(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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferByPrivateMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferByPrivateMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
com.google.protobuf.ByteString getPrivateKey();
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
com.google.protobuf.ByteString getToAddress();
/**
* int64 amount = 3;
* @return The amount.
*/
long getAmount();
}
/**
* Protobuf type {@code protocol.EasyTransferByPrivateMessage}
*/
public static final class EasyTransferByPrivateMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EasyTransferByPrivateMessage)
EasyTransferByPrivateMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EasyTransferByPrivateMessage.newBuilder() to construct.
private EasyTransferByPrivateMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EasyTransferByPrivateMessage() {
privateKey_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EasyTransferByPrivateMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EasyTransferByPrivateMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
privateKey_ = input.readBytes();
break;
}
case 18: {
toAddress_ = input.readBytes();
break;
}
case 24: {
amount_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.Builder.class);
}
public static final int PRIVATEKEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString privateKey_;
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrivateKey() {
return privateKey_;
}
public static final int TOADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString toAddress_;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
public static final int AMOUNT_FIELD_NUMBER = 3;
private long amount_;
/**
* int64 amount = 3;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
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 (!privateKey_.isEmpty()) {
output.writeBytes(1, privateKey_);
}
if (!toAddress_.isEmpty()) {
output.writeBytes(2, toAddress_);
}
if (amount_ != 0L) {
output.writeInt64(3, amount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!privateKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, privateKey_);
}
if (!toAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, toAddress_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, amount_);
}
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage other = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage) obj;
if (!getPrivateKey()
.equals(other.getPrivateKey())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (getAmount()
!= other.getAmount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateKey().hashCode();
hash = (37 * hash) + TOADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getToAddress().hashCode();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage 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(org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage 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;
}
/**
* Protobuf type {@code protocol.EasyTransferByPrivateMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EasyTransferByPrivateMessage)
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.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();
privateKey_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
amount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferByPrivateMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage build() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage result = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage(this);
result.privateKey_ = privateKey_;
result.toAddress_ = toAddress_;
result.amount_ = amount_;
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage.getDefaultInstance()) return this;
if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) {
setPrivateKey(other.getPrivateKey());
}
if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) {
setToAddress(other.getToAddress());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrivateKey() {
return privateKey_;
}
/**
* bytes privateKey = 1;
* @param value The privateKey to set.
* @return This builder for chaining.
*/
public Builder setPrivateKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
privateKey_ = value;
onChanged();
return this;
}
/**
* bytes privateKey = 1;
* @return This builder for chaining.
*/
public Builder clearPrivateKey() {
privateKey_ = getDefaultInstance().getPrivateKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
/**
* bytes toAddress = 2;
* @param value The toAddress to set.
* @return This builder for chaining.
*/
public Builder setToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
toAddress_ = value;
onChanged();
return this;
}
/**
* bytes toAddress = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
toAddress_ = getDefaultInstance().getToAddress();
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 3;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 3;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 3;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
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:protocol.EasyTransferByPrivateMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EasyTransferByPrivateMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EasyTransferByPrivateMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EasyTransferByPrivateMessage(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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferByPrivateMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferAssetByPrivateMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferAssetByPrivateMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
com.google.protobuf.ByteString getPrivateKey();
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
com.google.protobuf.ByteString getToAddress();
/**
* string assetId = 3;
* @return The assetId.
*/
java.lang.String getAssetId();
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
com.google.protobuf.ByteString
getAssetIdBytes();
/**
* int64 amount = 4;
* @return The amount.
*/
long getAmount();
}
/**
* Protobuf type {@code protocol.EasyTransferAssetByPrivateMessage}
*/
public static final class EasyTransferAssetByPrivateMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EasyTransferAssetByPrivateMessage)
EasyTransferAssetByPrivateMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EasyTransferAssetByPrivateMessage.newBuilder() to construct.
private EasyTransferAssetByPrivateMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EasyTransferAssetByPrivateMessage() {
privateKey_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
assetId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EasyTransferAssetByPrivateMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EasyTransferAssetByPrivateMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
privateKey_ = input.readBytes();
break;
}
case 18: {
toAddress_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
assetId_ = s;
break;
}
case 32: {
amount_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.Builder.class);
}
public static final int PRIVATEKEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString privateKey_;
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrivateKey() {
return privateKey_;
}
public static final int TOADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString toAddress_;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
public static final int ASSETID_FIELD_NUMBER = 3;
private volatile java.lang.Object assetId_;
/**
* string assetId = 3;
* @return The assetId.
*/
@java.lang.Override
public java.lang.String getAssetId() {
java.lang.Object ref = assetId_;
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();
assetId_ = s;
return s;
}
}
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAssetIdBytes() {
java.lang.Object ref = assetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AMOUNT_FIELD_NUMBER = 4;
private long amount_;
/**
* int64 amount = 4;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
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 (!privateKey_.isEmpty()) {
output.writeBytes(1, privateKey_);
}
if (!toAddress_.isEmpty()) {
output.writeBytes(2, toAddress_);
}
if (!getAssetIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetId_);
}
if (amount_ != 0L) {
output.writeInt64(4, amount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!privateKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, privateKey_);
}
if (!toAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, toAddress_);
}
if (!getAssetIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assetId_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, amount_);
}
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage other = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage) obj;
if (!getPrivateKey()
.equals(other.getPrivateKey())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (!getAssetId()
.equals(other.getAssetId())) return false;
if (getAmount()
!= other.getAmount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateKey().hashCode();
hash = (37 * hash) + TOADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getToAddress().hashCode();
hash = (37 * hash) + ASSETID_FIELD_NUMBER;
hash = (53 * hash) + getAssetId().hashCode();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage 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.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage 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(org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage 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;
}
/**
* Protobuf type {@code protocol.EasyTransferAssetByPrivateMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EasyTransferAssetByPrivateMessage)
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.class, org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.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();
privateKey_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
assetId_ = "";
amount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage build() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage result = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage(this);
result.privateKey_ = privateKey_;
result.toAddress_ = toAddress_;
result.assetId_ = assetId_;
result.amount_ = amount_;
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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage.getDefaultInstance()) return this;
if (other.getPrivateKey() != com.google.protobuf.ByteString.EMPTY) {
setPrivateKey(other.getPrivateKey());
}
if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) {
setToAddress(other.getToAddress());
}
if (!other.getAssetId().isEmpty()) {
assetId_ = other.assetId_;
onChanged();
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes privateKey = 1;
* @return The privateKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPrivateKey() {
return privateKey_;
}
/**
* bytes privateKey = 1;
* @param value The privateKey to set.
* @return This builder for chaining.
*/
public Builder setPrivateKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
privateKey_ = value;
onChanged();
return this;
}
/**
* bytes privateKey = 1;
* @return This builder for chaining.
*/
public Builder clearPrivateKey() {
privateKey_ = getDefaultInstance().getPrivateKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes toAddress = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
/**
* bytes toAddress = 2;
* @param value The toAddress to set.
* @return This builder for chaining.
*/
public Builder setToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
toAddress_ = value;
onChanged();
return this;
}
/**
* bytes toAddress = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
toAddress_ = getDefaultInstance().getToAddress();
onChanged();
return this;
}
private java.lang.Object assetId_ = "";
/**
* string assetId = 3;
* @return The assetId.
*/
public java.lang.String getAssetId() {
java.lang.Object ref = assetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string assetId = 3;
* @return The bytes for assetId.
*/
public com.google.protobuf.ByteString
getAssetIdBytes() {
java.lang.Object ref = assetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string assetId = 3;
* @param value The assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
assetId_ = value;
onChanged();
return this;
}
/**
* string assetId = 3;
* @return This builder for chaining.
*/
public Builder clearAssetId() {
assetId_ = getDefaultInstance().getAssetId();
onChanged();
return this;
}
/**
* string assetId = 3;
* @param value The bytes for assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
assetId_ = value;
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 4;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 4;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 4;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
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:protocol.EasyTransferAssetByPrivateMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EasyTransferAssetByPrivateMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EasyTransferAssetByPrivateMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EasyTransferAssetByPrivateMessage(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 org.vision.visionjsdk.api.GrpcAPI.EasyTransferAssetByPrivateMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ViewingKeyMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ViewingKeyMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ak = 1;
* @return The ak.
*/
com.google.protobuf.ByteString getAk();
/**
* bytes nk = 2;
* @return The nk.
*/
com.google.protobuf.ByteString getNk();
}
/**
*
* - Shielded VRC20
*
*
* Protobuf type {@code protocol.ViewingKeyMessage}
*/
public static final class ViewingKeyMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ViewingKeyMessage)
ViewingKeyMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use ViewingKeyMessage.newBuilder() to construct.
private ViewingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ViewingKeyMessage() {
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ViewingKeyMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ViewingKeyMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
ak_ = input.readBytes();
break;
}
case 18: {
nk_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.Builder.class);
}
public static final int AK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ak_;
/**
* bytes ak = 1;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
public static final int NK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nk_;
/**
* bytes nk = 2;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
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 (!ak_.isEmpty()) {
output.writeBytes(1, ak_);
}
if (!nk_.isEmpty()) {
output.writeBytes(2, nk_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ak_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ak_);
}
if (!nk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, nk_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage other = (org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage) obj;
if (!getAk()
.equals(other.getAk())) return false;
if (!getNk()
.equals(other.getNk())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AK_FIELD_NUMBER;
hash = (53 * hash) + getAk().hashCode();
hash = (37 * hash) + NK_FIELD_NUMBER;
hash = (53 * hash) + getNk().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage 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(org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage 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;
}
/**
*
* - Shielded VRC20
*
*
* Protobuf type {@code protocol.ViewingKeyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ViewingKeyMessage)
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.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();
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ViewingKeyMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage build() {
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage result = new org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage(this);
result.ak_ = ak_;
result.nk_ = nk_;
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 org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage.getDefaultInstance()) return this;
if (other.getAk() != com.google.protobuf.ByteString.EMPTY) {
setAk(other.getAk());
}
if (other.getNk() != com.google.protobuf.ByteString.EMPTY) {
setNk(other.getNk());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ak = 1;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
/**
* bytes ak = 1;
* @param value The ak to set.
* @return This builder for chaining.
*/
public Builder setAk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ak_ = value;
onChanged();
return this;
}
/**
* bytes ak = 1;
* @return This builder for chaining.
*/
public Builder clearAk() {
ak_ = getDefaultInstance().getAk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nk = 2;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
/**
* bytes nk = 2;
* @param value The nk to set.
* @return This builder for chaining.
*/
public Builder setNk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nk_ = value;
onChanged();
return this;
}
/**
* bytes nk = 2;
* @return This builder for chaining.
*/
public Builder clearNk() {
nk_ = getDefaultInstance().getNk();
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:protocol.ViewingKeyMessage)
}
// @@protoc_insertion_point(class_scope:protocol.ViewingKeyMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ViewingKeyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ViewingKeyMessage(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 org.vision.visionjsdk.api.GrpcAPI.ViewingKeyMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShieldedAddressInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ShieldedAddressInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes sk = 1;
* @return The sk.
*/
com.google.protobuf.ByteString getSk();
/**
* bytes ask = 2;
* @return The ask.
*/
com.google.protobuf.ByteString getAsk();
/**
* bytes nsk = 3;
* @return The nsk.
*/
com.google.protobuf.ByteString getNsk();
/**
* bytes ovk = 4;
* @return The ovk.
*/
com.google.protobuf.ByteString getOvk();
/**
* bytes ak = 5;
* @return The ak.
*/
com.google.protobuf.ByteString getAk();
/**
* bytes nk = 6;
* @return The nk.
*/
com.google.protobuf.ByteString getNk();
/**
* bytes ivk = 7;
* @return The ivk.
*/
com.google.protobuf.ByteString getIvk();
/**
* bytes d = 8;
* @return The d.
*/
com.google.protobuf.ByteString getD();
/**
* bytes pkD = 9;
* @return The pkD.
*/
com.google.protobuf.ByteString getPkD();
/**
* string payment_address = 10;
* @return The paymentAddress.
*/
java.lang.String getPaymentAddress();
/**
* string payment_address = 10;
* @return The bytes for paymentAddress.
*/
com.google.protobuf.ByteString
getPaymentAddressBytes();
}
/**
* Protobuf type {@code protocol.ShieldedAddressInfo}
*/
public static final class ShieldedAddressInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ShieldedAddressInfo)
ShieldedAddressInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShieldedAddressInfo.newBuilder() to construct.
private ShieldedAddressInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShieldedAddressInfo() {
sk_ = com.google.protobuf.ByteString.EMPTY;
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
ivk_ = com.google.protobuf.ByteString.EMPTY;
d_ = com.google.protobuf.ByteString.EMPTY;
pkD_ = com.google.protobuf.ByteString.EMPTY;
paymentAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShieldedAddressInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ShieldedAddressInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
sk_ = input.readBytes();
break;
}
case 18: {
ask_ = input.readBytes();
break;
}
case 26: {
nsk_ = input.readBytes();
break;
}
case 34: {
ovk_ = input.readBytes();
break;
}
case 42: {
ak_ = input.readBytes();
break;
}
case 50: {
nk_ = input.readBytes();
break;
}
case 58: {
ivk_ = input.readBytes();
break;
}
case 66: {
d_ = input.readBytes();
break;
}
case 74: {
pkD_ = input.readBytes();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
paymentAddress_ = 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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.Builder.class);
}
public static final int SK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString sk_;
/**
* bytes sk = 1;
* @return The sk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSk() {
return sk_;
}
public static final int ASK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString ask_;
/**
* bytes ask = 2;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
public static final int NSK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString nsk_;
/**
* bytes nsk = 3;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
public static final int OVK_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString ovk_;
/**
* bytes ovk = 4;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
public static final int AK_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString ak_;
/**
* bytes ak = 5;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
public static final int NK_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString nk_;
/**
* bytes nk = 6;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
public static final int IVK_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString ivk_;
/**
* bytes ivk = 7;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
public static final int D_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString d_;
/**
* bytes d = 8;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return d_;
}
public static final int PKD_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString pkD_;
/**
* bytes pkD = 9;
* @return The pkD.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPkD() {
return pkD_;
}
public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 10;
private volatile java.lang.Object paymentAddress_;
/**
* string payment_address = 10;
* @return The paymentAddress.
*/
@java.lang.Override
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
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();
paymentAddress_ = s;
return s;
}
}
/**
* string payment_address = 10;
* @return The bytes for paymentAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = 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 (!sk_.isEmpty()) {
output.writeBytes(1, sk_);
}
if (!ask_.isEmpty()) {
output.writeBytes(2, ask_);
}
if (!nsk_.isEmpty()) {
output.writeBytes(3, nsk_);
}
if (!ovk_.isEmpty()) {
output.writeBytes(4, ovk_);
}
if (!ak_.isEmpty()) {
output.writeBytes(5, ak_);
}
if (!nk_.isEmpty()) {
output.writeBytes(6, nk_);
}
if (!ivk_.isEmpty()) {
output.writeBytes(7, ivk_);
}
if (!d_.isEmpty()) {
output.writeBytes(8, d_);
}
if (!pkD_.isEmpty()) {
output.writeBytes(9, pkD_);
}
if (!getPaymentAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, paymentAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!sk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, sk_);
}
if (!ask_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, ask_);
}
if (!nsk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, nsk_);
}
if (!ovk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, ovk_);
}
if (!ak_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, ak_);
}
if (!nk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, nk_);
}
if (!ivk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, ivk_);
}
if (!d_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, d_);
}
if (!pkD_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, pkD_);
}
if (!getPaymentAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, paymentAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo other = (org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo) obj;
if (!getSk()
.equals(other.getSk())) return false;
if (!getAsk()
.equals(other.getAsk())) return false;
if (!getNsk()
.equals(other.getNsk())) return false;
if (!getOvk()
.equals(other.getOvk())) return false;
if (!getAk()
.equals(other.getAk())) return false;
if (!getNk()
.equals(other.getNk())) return false;
if (!getIvk()
.equals(other.getIvk())) return false;
if (!getD()
.equals(other.getD())) return false;
if (!getPkD()
.equals(other.getPkD())) return false;
if (!getPaymentAddress()
.equals(other.getPaymentAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SK_FIELD_NUMBER;
hash = (53 * hash) + getSk().hashCode();
hash = (37 * hash) + ASK_FIELD_NUMBER;
hash = (53 * hash) + getAsk().hashCode();
hash = (37 * hash) + NSK_FIELD_NUMBER;
hash = (53 * hash) + getNsk().hashCode();
hash = (37 * hash) + OVK_FIELD_NUMBER;
hash = (53 * hash) + getOvk().hashCode();
hash = (37 * hash) + AK_FIELD_NUMBER;
hash = (53 * hash) + getAk().hashCode();
hash = (37 * hash) + NK_FIELD_NUMBER;
hash = (53 * hash) + getNk().hashCode();
hash = (37 * hash) + IVK_FIELD_NUMBER;
hash = (53 * hash) + getIvk().hashCode();
hash = (37 * hash) + D_FIELD_NUMBER;
hash = (53 * hash) + getD().hashCode();
hash = (37 * hash) + PKD_FIELD_NUMBER;
hash = (53 * hash) + getPkD().hashCode();
hash = (37 * hash) + PAYMENT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getPaymentAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo 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.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo 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.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo 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(org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo 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;
}
/**
* Protobuf type {@code protocol.ShieldedAddressInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ShieldedAddressInfo)
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.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();
sk_ = com.google.protobuf.ByteString.EMPTY;
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
ivk_ = com.google.protobuf.ByteString.EMPTY;
d_ = com.google.protobuf.ByteString.EMPTY;
pkD_ = com.google.protobuf.ByteString.EMPTY;
paymentAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedAddressInfo_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo build() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo result = new org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo(this);
result.sk_ = sk_;
result.ask_ = ask_;
result.nsk_ = nsk_;
result.ovk_ = ovk_;
result.ak_ = ak_;
result.nk_ = nk_;
result.ivk_ = ivk_;
result.d_ = d_;
result.pkD_ = pkD_;
result.paymentAddress_ = paymentAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo.getDefaultInstance()) return this;
if (other.getSk() != com.google.protobuf.ByteString.EMPTY) {
setSk(other.getSk());
}
if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) {
setAsk(other.getAsk());
}
if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) {
setNsk(other.getNsk());
}
if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) {
setOvk(other.getOvk());
}
if (other.getAk() != com.google.protobuf.ByteString.EMPTY) {
setAk(other.getAk());
}
if (other.getNk() != com.google.protobuf.ByteString.EMPTY) {
setNk(other.getNk());
}
if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) {
setIvk(other.getIvk());
}
if (other.getD() != com.google.protobuf.ByteString.EMPTY) {
setD(other.getD());
}
if (other.getPkD() != com.google.protobuf.ByteString.EMPTY) {
setPkD(other.getPkD());
}
if (!other.getPaymentAddress().isEmpty()) {
paymentAddress_ = other.paymentAddress_;
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 {
org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString sk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sk = 1;
* @return The sk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSk() {
return sk_;
}
/**
* bytes sk = 1;
* @param value The sk to set.
* @return This builder for chaining.
*/
public Builder setSk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
sk_ = value;
onChanged();
return this;
}
/**
* bytes sk = 1;
* @return This builder for chaining.
*/
public Builder clearSk() {
sk_ = getDefaultInstance().getSk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ask = 2;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
/**
* bytes ask = 2;
* @param value The ask to set.
* @return This builder for chaining.
*/
public Builder setAsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ask_ = value;
onChanged();
return this;
}
/**
* bytes ask = 2;
* @return This builder for chaining.
*/
public Builder clearAsk() {
ask_ = getDefaultInstance().getAsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nsk = 3;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
/**
* bytes nsk = 3;
* @param value The nsk to set.
* @return This builder for chaining.
*/
public Builder setNsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nsk_ = value;
onChanged();
return this;
}
/**
* bytes nsk = 3;
* @return This builder for chaining.
*/
public Builder clearNsk() {
nsk_ = getDefaultInstance().getNsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ovk = 4;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
/**
* bytes ovk = 4;
* @param value The ovk to set.
* @return This builder for chaining.
*/
public Builder setOvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ovk_ = value;
onChanged();
return this;
}
/**
* bytes ovk = 4;
* @return This builder for chaining.
*/
public Builder clearOvk() {
ovk_ = getDefaultInstance().getOvk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ak = 5;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
/**
* bytes ak = 5;
* @param value The ak to set.
* @return This builder for chaining.
*/
public Builder setAk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ak_ = value;
onChanged();
return this;
}
/**
* bytes ak = 5;
* @return This builder for chaining.
*/
public Builder clearAk() {
ak_ = getDefaultInstance().getAk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nk = 6;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
/**
* bytes nk = 6;
* @param value The nk to set.
* @return This builder for chaining.
*/
public Builder setNk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nk_ = value;
onChanged();
return this;
}
/**
* bytes nk = 6;
* @return This builder for chaining.
*/
public Builder clearNk() {
nk_ = getDefaultInstance().getNk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ivk = 7;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
/**
* bytes ivk = 7;
* @param value The ivk to set.
* @return This builder for chaining.
*/
public Builder setIvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ivk_ = value;
onChanged();
return this;
}
/**
* bytes ivk = 7;
* @return This builder for chaining.
*/
public Builder clearIvk() {
ivk_ = getDefaultInstance().getIvk();
onChanged();
return this;
}
private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes d = 8;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return d_;
}
/**
* bytes d = 8;
* @param value The d to set.
* @return This builder for chaining.
*/
public Builder setD(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
d_ = value;
onChanged();
return this;
}
/**
* bytes d = 8;
* @return This builder for chaining.
*/
public Builder clearD() {
d_ = getDefaultInstance().getD();
onChanged();
return this;
}
private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes pkD = 9;
* @return The pkD.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPkD() {
return pkD_;
}
/**
* bytes pkD = 9;
* @param value The pkD to set.
* @return This builder for chaining.
*/
public Builder setPkD(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
pkD_ = value;
onChanged();
return this;
}
/**
* bytes pkD = 9;
* @return This builder for chaining.
*/
public Builder clearPkD() {
pkD_ = getDefaultInstance().getPkD();
onChanged();
return this;
}
private java.lang.Object paymentAddress_ = "";
/**
* string payment_address = 10;
* @return The paymentAddress.
*/
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string payment_address = 10;
* @return The bytes for paymentAddress.
*/
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string payment_address = 10;
* @param value The paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
paymentAddress_ = value;
onChanged();
return this;
}
/**
* string payment_address = 10;
* @return This builder for chaining.
*/
public Builder clearPaymentAddress() {
paymentAddress_ = getDefaultInstance().getPaymentAddress();
onChanged();
return this;
}
/**
* string payment_address = 10;
* @param value The bytes for paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
paymentAddress_ = 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:protocol.ShieldedAddressInfo)
}
// @@protoc_insertion_point(class_scope:protocol.ShieldedAddressInfo)
private static final org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo();
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShieldedAddressInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShieldedAddressInfo(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 org.vision.visionjsdk.api.GrpcAPI.ShieldedAddressInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PaymentAddressMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.PaymentAddressMessage)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.DiversifierMessage d = 1;
* @return Whether the d field is set.
*/
boolean hasD();
/**
* .protocol.DiversifierMessage d = 1;
* @return The d.
*/
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD();
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder();
/**
* bytes pkD = 2;
* @return The pkD.
*/
com.google.protobuf.ByteString getPkD();
/**
* string payment_address = 3;
* @return The paymentAddress.
*/
java.lang.String getPaymentAddress();
/**
* string payment_address = 3;
* @return The bytes for paymentAddress.
*/
com.google.protobuf.ByteString
getPaymentAddressBytes();
}
/**
* Protobuf type {@code protocol.PaymentAddressMessage}
*/
public static final class PaymentAddressMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.PaymentAddressMessage)
PaymentAddressMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use PaymentAddressMessage.newBuilder() to construct.
private PaymentAddressMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PaymentAddressMessage() {
pkD_ = com.google.protobuf.ByteString.EMPTY;
paymentAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PaymentAddressMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PaymentAddressMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder subBuilder = null;
if (d_ != null) {
subBuilder = d_.toBuilder();
}
d_ = input.readMessage(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(d_);
d_ = subBuilder.buildPartial();
}
break;
}
case 18: {
pkD_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
paymentAddress_ = 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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.class, org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.Builder.class);
}
public static final int D_FIELD_NUMBER = 1;
private org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage d_;
/**
* .protocol.DiversifierMessage d = 1;
* @return Whether the d field is set.
*/
@java.lang.Override
public boolean hasD() {
return d_ != null;
}
/**
* .protocol.DiversifierMessage d = 1;
* @return The d.
*/
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD() {
return d_ == null ? org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() {
return getD();
}
public static final int PKD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString pkD_;
/**
* bytes pkD = 2;
* @return The pkD.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPkD() {
return pkD_;
}
public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object paymentAddress_;
/**
* string payment_address = 3;
* @return The paymentAddress.
*/
@java.lang.Override
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
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();
paymentAddress_ = s;
return s;
}
}
/**
* string payment_address = 3;
* @return The bytes for paymentAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = 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 (d_ != null) {
output.writeMessage(1, getD());
}
if (!pkD_.isEmpty()) {
output.writeBytes(2, pkD_);
}
if (!getPaymentAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paymentAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (d_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getD());
}
if (!pkD_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, pkD_);
}
if (!getPaymentAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, paymentAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage other = (org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage) obj;
if (hasD() != other.hasD()) return false;
if (hasD()) {
if (!getD()
.equals(other.getD())) return false;
}
if (!getPkD()
.equals(other.getPkD())) return false;
if (!getPaymentAddress()
.equals(other.getPaymentAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasD()) {
hash = (37 * hash) + D_FIELD_NUMBER;
hash = (53 * hash) + getD().hashCode();
}
hash = (37 * hash) + PKD_FIELD_NUMBER;
hash = (53 * hash) + getPkD().hashCode();
hash = (37 * hash) + PAYMENT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getPaymentAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage 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.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage 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.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage 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(org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage 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;
}
/**
* Protobuf type {@code protocol.PaymentAddressMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.PaymentAddressMessage)
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.class, org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.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();
if (dBuilder_ == null) {
d_ = null;
} else {
d_ = null;
dBuilder_ = null;
}
pkD_ = com.google.protobuf.ByteString.EMPTY;
paymentAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PaymentAddressMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage build() {
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage result = new org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage(this);
if (dBuilder_ == null) {
result.d_ = d_;
} else {
result.d_ = dBuilder_.build();
}
result.pkD_ = pkD_;
result.paymentAddress_ = paymentAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage.getDefaultInstance()) return this;
if (other.hasD()) {
mergeD(other.getD());
}
if (other.getPkD() != com.google.protobuf.ByteString.EMPTY) {
setPkD(other.getPkD());
}
if (!other.getPaymentAddress().isEmpty()) {
paymentAddress_ = other.paymentAddress_;
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 {
org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage d_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder> dBuilder_;
/**
* .protocol.DiversifierMessage d = 1;
* @return Whether the d field is set.
*/
public boolean hasD() {
return dBuilder_ != null || d_ != null;
}
/**
* .protocol.DiversifierMessage d = 1;
* @return The d.
*/
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD() {
if (dBuilder_ == null) {
return d_ == null ? org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
} else {
return dBuilder_.getMessage();
}
}
public Builder setD(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage value) {
if (dBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
d_ = value;
onChanged();
} else {
dBuilder_.setMessage(value);
}
return this;
}
public Builder setD(
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder builderForValue) {
if (dBuilder_ == null) {
d_ = builderForValue.build();
onChanged();
} else {
dBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeD(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage value) {
if (dBuilder_ == null) {
if (d_ != null) {
d_ =
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.newBuilder(d_).mergeFrom(value).buildPartial();
} else {
d_ = value;
}
onChanged();
} else {
dBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearD() {
if (dBuilder_ == null) {
d_ = null;
onChanged();
} else {
d_ = null;
dBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder getDBuilder() {
onChanged();
return getDFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() {
if (dBuilder_ != null) {
return dBuilder_.getMessageOrBuilder();
} else {
return d_ == null ?
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder>
getDFieldBuilder() {
if (dBuilder_ == null) {
dBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder>(
getD(),
getParentForChildren(),
isClean());
d_ = null;
}
return dBuilder_;
}
private com.google.protobuf.ByteString pkD_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes pkD = 2;
* @return The pkD.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPkD() {
return pkD_;
}
/**
* bytes pkD = 2;
* @param value The pkD to set.
* @return This builder for chaining.
*/
public Builder setPkD(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
pkD_ = value;
onChanged();
return this;
}
/**
* bytes pkD = 2;
* @return This builder for chaining.
*/
public Builder clearPkD() {
pkD_ = getDefaultInstance().getPkD();
onChanged();
return this;
}
private java.lang.Object paymentAddress_ = "";
/**
* string payment_address = 3;
* @return The paymentAddress.
*/
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string payment_address = 3;
* @return The bytes for paymentAddress.
*/
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string payment_address = 3;
* @param value The paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
paymentAddress_ = value;
onChanged();
return this;
}
/**
* string payment_address = 3;
* @return This builder for chaining.
*/
public Builder clearPaymentAddress() {
paymentAddress_ = getDefaultInstance().getPaymentAddress();
onChanged();
return this;
}
/**
* string payment_address = 3;
* @param value The bytes for paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
paymentAddress_ = 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:protocol.PaymentAddressMessage)
}
// @@protoc_insertion_point(class_scope:protocol.PaymentAddressMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PaymentAddressMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PaymentAddressMessage(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 org.vision.visionjsdk.api.GrpcAPI.PaymentAddressMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DiversifierMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.DiversifierMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes d = 1;
* @return The d.
*/
com.google.protobuf.ByteString getD();
}
/**
* Protobuf type {@code protocol.DiversifierMessage}
*/
public static final class DiversifierMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.DiversifierMessage)
DiversifierMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiversifierMessage.newBuilder() to construct.
private DiversifierMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiversifierMessage() {
d_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiversifierMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiversifierMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
d_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_DiversifierMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.class, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder.class);
}
public static final int D_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString d_;
/**
* bytes d = 1;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return d_;
}
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 (!d_.isEmpty()) {
output.writeBytes(1, d_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!d_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, d_);
}
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 org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage other = (org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage) obj;
if (!getD()
.equals(other.getD())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + D_FIELD_NUMBER;
hash = (53 * hash) + getD().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage 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.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage 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.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage 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(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage 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;
}
/**
* Protobuf type {@code protocol.DiversifierMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.DiversifierMessage)
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_DiversifierMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.class, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.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();
d_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_DiversifierMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage build() {
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage result = new org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage(this);
result.d_ = d_;
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 org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance()) return this;
if (other.getD() != com.google.protobuf.ByteString.EMPTY) {
setD(other.getD());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString d_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes d = 1;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return d_;
}
/**
* bytes d = 1;
* @param value The d to set.
* @return This builder for chaining.
*/
public Builder setD(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
d_ = value;
onChanged();
return this;
}
/**
* bytes d = 1;
* @return This builder for chaining.
*/
public Builder clearD() {
d_ = getDefaultInstance().getD();
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:protocol.DiversifierMessage)
}
// @@protoc_insertion_point(class_scope:protocol.DiversifierMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiversifierMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DiversifierMessage(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 org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExpandedSpendingKeyMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ExpandedSpendingKeyMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ask = 1;
* @return The ask.
*/
com.google.protobuf.ByteString getAsk();
/**
* bytes nsk = 2;
* @return The nsk.
*/
com.google.protobuf.ByteString getNsk();
/**
* bytes ovk = 3;
* @return The ovk.
*/
com.google.protobuf.ByteString getOvk();
}
/**
* Protobuf type {@code protocol.ExpandedSpendingKeyMessage}
*/
public static final class ExpandedSpendingKeyMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ExpandedSpendingKeyMessage)
ExpandedSpendingKeyMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExpandedSpendingKeyMessage.newBuilder() to construct.
private ExpandedSpendingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExpandedSpendingKeyMessage() {
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExpandedSpendingKeyMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExpandedSpendingKeyMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
ask_ = input.readBytes();
break;
}
case 18: {
nsk_ = input.readBytes();
break;
}
case 26: {
ovk_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.Builder.class);
}
public static final int ASK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ask_;
/**
* bytes ask = 1;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
public static final int NSK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nsk_;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
public static final int OVK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ovk_;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
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 (!ask_.isEmpty()) {
output.writeBytes(1, ask_);
}
if (!nsk_.isEmpty()) {
output.writeBytes(2, nsk_);
}
if (!ovk_.isEmpty()) {
output.writeBytes(3, ovk_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ask_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ask_);
}
if (!nsk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, nsk_);
}
if (!ovk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ovk_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage other = (org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage) obj;
if (!getAsk()
.equals(other.getAsk())) return false;
if (!getNsk()
.equals(other.getNsk())) return false;
if (!getOvk()
.equals(other.getOvk())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ASK_FIELD_NUMBER;
hash = (53 * hash) + getAsk().hashCode();
hash = (37 * hash) + NSK_FIELD_NUMBER;
hash = (53 * hash) + getNsk().hashCode();
hash = (37 * hash) + OVK_FIELD_NUMBER;
hash = (53 * hash) + getOvk().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage 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(org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage 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;
}
/**
* Protobuf type {@code protocol.ExpandedSpendingKeyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ExpandedSpendingKeyMessage)
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.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();
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ExpandedSpendingKeyMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage build() {
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage result = new org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage(this);
result.ask_ = ask_;
result.nsk_ = nsk_;
result.ovk_ = ovk_;
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 org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage.getDefaultInstance()) return this;
if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) {
setAsk(other.getAsk());
}
if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) {
setNsk(other.getNsk());
}
if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) {
setOvk(other.getOvk());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ask = 1;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
/**
* bytes ask = 1;
* @param value The ask to set.
* @return This builder for chaining.
*/
public Builder setAsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ask_ = value;
onChanged();
return this;
}
/**
* bytes ask = 1;
* @return This builder for chaining.
*/
public Builder clearAsk() {
ask_ = getDefaultInstance().getAsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
/**
* bytes nsk = 2;
* @param value The nsk to set.
* @return This builder for chaining.
*/
public Builder setNsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nsk_ = value;
onChanged();
return this;
}
/**
* bytes nsk = 2;
* @return This builder for chaining.
*/
public Builder clearNsk() {
nsk_ = getDefaultInstance().getNsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
/**
* bytes ovk = 3;
* @param value The ovk to set.
* @return This builder for chaining.
*/
public Builder setOvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ovk_ = value;
onChanged();
return this;
}
/**
* bytes ovk = 3;
* @return This builder for chaining.
*/
public Builder clearOvk() {
ovk_ = getDefaultInstance().getOvk();
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:protocol.ExpandedSpendingKeyMessage)
}
// @@protoc_insertion_point(class_scope:protocol.ExpandedSpendingKeyMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExpandedSpendingKeyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExpandedSpendingKeyMessage(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 org.vision.visionjsdk.api.GrpcAPI.ExpandedSpendingKeyMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IncomingViewingKeyMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.IncomingViewingKeyMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ivk = 1;
* @return The ivk.
*/
com.google.protobuf.ByteString getIvk();
}
/**
* Protobuf type {@code protocol.IncomingViewingKeyMessage}
*/
public static final class IncomingViewingKeyMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.IncomingViewingKeyMessage)
IncomingViewingKeyMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncomingViewingKeyMessage.newBuilder() to construct.
private IncomingViewingKeyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncomingViewingKeyMessage() {
ivk_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IncomingViewingKeyMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IncomingViewingKeyMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
ivk_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder.class);
}
public static final int IVK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ivk_;
/**
* bytes ivk = 1;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
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 (!ivk_.isEmpty()) {
output.writeBytes(1, ivk_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ivk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ivk_);
}
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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage other = (org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage) obj;
if (!getIvk()
.equals(other.getIvk())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IVK_FIELD_NUMBER;
hash = (53 * hash) + getIvk().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage 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.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage 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(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage 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;
}
/**
* Protobuf type {@code protocol.IncomingViewingKeyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.IncomingViewingKeyMessage)
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.class, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.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();
ivk_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage build() {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage result = new org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage(this);
result.ivk_ = ivk_;
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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance()) return this;
if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) {
setIvk(other.getIvk());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ivk = 1;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
/**
* bytes ivk = 1;
* @param value The ivk to set.
* @return This builder for chaining.
*/
public Builder setIvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ivk_ = value;
onChanged();
return this;
}
/**
* bytes ivk = 1;
* @return This builder for chaining.
*/
public Builder clearIvk() {
ivk_ = getDefaultInstance().getIvk();
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:protocol.IncomingViewingKeyMessage)
}
// @@protoc_insertion_point(class_scope:protocol.IncomingViewingKeyMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncomingViewingKeyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IncomingViewingKeyMessage(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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IncomingViewingKeyDiversifierMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.IncomingViewingKeyDiversifierMessage)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return Whether the ivk field is set.
*/
boolean hasIvk();
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return The ivk.
*/
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getIvk();
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder();
/**
* .protocol.DiversifierMessage d = 2;
* @return Whether the d field is set.
*/
boolean hasD();
/**
* .protocol.DiversifierMessage d = 2;
* @return The d.
*/
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD();
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder();
}
/**
*
* What's the fucking API design
*
*
* Protobuf type {@code protocol.IncomingViewingKeyDiversifierMessage}
*/
public static final class IncomingViewingKeyDiversifierMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.IncomingViewingKeyDiversifierMessage)
IncomingViewingKeyDiversifierMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncomingViewingKeyDiversifierMessage.newBuilder() to construct.
private IncomingViewingKeyDiversifierMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncomingViewingKeyDiversifierMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IncomingViewingKeyDiversifierMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IncomingViewingKeyDiversifierMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder subBuilder = null;
if (ivk_ != null) {
subBuilder = ivk_.toBuilder();
}
ivk_ = input.readMessage(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ivk_);
ivk_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder subBuilder = null;
if (d_ != null) {
subBuilder = d_.toBuilder();
}
d_ = input.readMessage(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(d_);
d_ = subBuilder.buildPartial();
}
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.Builder.class);
}
public static final int IVK_FIELD_NUMBER = 1;
private org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage ivk_;
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return Whether the ivk field is set.
*/
@java.lang.Override
public boolean hasIvk() {
return ivk_ != null;
}
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return The ivk.
*/
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getIvk() {
return ivk_ == null ? org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder() {
return getIvk();
}
public static final int D_FIELD_NUMBER = 2;
private org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage d_;
/**
* .protocol.DiversifierMessage d = 2;
* @return Whether the d field is set.
*/
@java.lang.Override
public boolean hasD() {
return d_ != null;
}
/**
* .protocol.DiversifierMessage d = 2;
* @return The d.
*/
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD() {
return d_ == null ? org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() {
return getD();
}
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 (ivk_ != null) {
output.writeMessage(1, getIvk());
}
if (d_ != null) {
output.writeMessage(2, getD());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ivk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIvk());
}
if (d_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getD());
}
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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage other = (org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage) obj;
if (hasIvk() != other.hasIvk()) return false;
if (hasIvk()) {
if (!getIvk()
.equals(other.getIvk())) return false;
}
if (hasD() != other.hasD()) return false;
if (hasD()) {
if (!getD()
.equals(other.getD())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasIvk()) {
hash = (37 * hash) + IVK_FIELD_NUMBER;
hash = (53 * hash) + getIvk().hashCode();
}
if (hasD()) {
hash = (37 * hash) + D_FIELD_NUMBER;
hash = (53 * hash) + getD().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage 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.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage 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.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage 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(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage 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;
}
/**
*
* What's the fucking API design
*
*
* Protobuf type {@code protocol.IncomingViewingKeyDiversifierMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.IncomingViewingKeyDiversifierMessage)
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.class, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.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();
if (ivkBuilder_ == null) {
ivk_ = null;
} else {
ivk_ = null;
ivkBuilder_ = null;
}
if (dBuilder_ == null) {
d_ = null;
} else {
d_ = null;
dBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage build() {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage result = new org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage(this);
if (ivkBuilder_ == null) {
result.ivk_ = ivk_;
} else {
result.ivk_ = ivkBuilder_.build();
}
if (dBuilder_ == null) {
result.d_ = d_;
} else {
result.d_ = dBuilder_.build();
}
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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage.getDefaultInstance()) return this;
if (other.hasIvk()) {
mergeIvk(other.getIvk());
}
if (other.hasD()) {
mergeD(other.getD());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage ivk_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder> ivkBuilder_;
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return Whether the ivk field is set.
*/
public boolean hasIvk() {
return ivkBuilder_ != null || ivk_ != null;
}
/**
* .protocol.IncomingViewingKeyMessage ivk = 1;
* @return The ivk.
*/
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage getIvk() {
if (ivkBuilder_ == null) {
return ivk_ == null ? org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_;
} else {
return ivkBuilder_.getMessage();
}
}
public Builder setIvk(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage value) {
if (ivkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ivk_ = value;
onChanged();
} else {
ivkBuilder_.setMessage(value);
}
return this;
}
public Builder setIvk(
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder builderForValue) {
if (ivkBuilder_ == null) {
ivk_ = builderForValue.build();
onChanged();
} else {
ivkBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeIvk(org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage value) {
if (ivkBuilder_ == null) {
if (ivk_ != null) {
ivk_ =
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.newBuilder(ivk_).mergeFrom(value).buildPartial();
} else {
ivk_ = value;
}
onChanged();
} else {
ivkBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearIvk() {
if (ivkBuilder_ == null) {
ivk_ = null;
onChanged();
} else {
ivk_ = null;
ivkBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder getIvkBuilder() {
onChanged();
return getIvkFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder getIvkOrBuilder() {
if (ivkBuilder_ != null) {
return ivkBuilder_.getMessageOrBuilder();
} else {
return ivk_ == null ?
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.getDefaultInstance() : ivk_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder>
getIvkFieldBuilder() {
if (ivkBuilder_ == null) {
ivkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyMessageOrBuilder>(
getIvk(),
getParentForChildren(),
isClean());
ivk_ = null;
}
return ivkBuilder_;
}
private org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage d_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder> dBuilder_;
/**
* .protocol.DiversifierMessage d = 2;
* @return Whether the d field is set.
*/
public boolean hasD() {
return dBuilder_ != null || d_ != null;
}
/**
* .protocol.DiversifierMessage d = 2;
* @return The d.
*/
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage getD() {
if (dBuilder_ == null) {
return d_ == null ? org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
} else {
return dBuilder_.getMessage();
}
}
public Builder setD(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage value) {
if (dBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
d_ = value;
onChanged();
} else {
dBuilder_.setMessage(value);
}
return this;
}
public Builder setD(
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder builderForValue) {
if (dBuilder_ == null) {
d_ = builderForValue.build();
onChanged();
} else {
dBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeD(org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage value) {
if (dBuilder_ == null) {
if (d_ != null) {
d_ =
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.newBuilder(d_).mergeFrom(value).buildPartial();
} else {
d_ = value;
}
onChanged();
} else {
dBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearD() {
if (dBuilder_ == null) {
d_ = null;
onChanged();
} else {
d_ = null;
dBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder getDBuilder() {
onChanged();
return getDFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder getDOrBuilder() {
if (dBuilder_ != null) {
return dBuilder_.getMessageOrBuilder();
} else {
return d_ == null ?
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.getDefaultInstance() : d_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder>
getDFieldBuilder() {
if (dBuilder_ == null) {
dBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.DiversifierMessageOrBuilder>(
getD(),
getParentForChildren(),
isClean());
d_ = null;
}
return dBuilder_;
}
@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:protocol.IncomingViewingKeyDiversifierMessage)
}
// @@protoc_insertion_point(class_scope:protocol.IncomingViewingKeyDiversifierMessage)
private static final org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage();
}
public static org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncomingViewingKeyDiversifierMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IncomingViewingKeyDiversifierMessage(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 org.vision.visionjsdk.api.GrpcAPI.IncomingViewingKeyDiversifierMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReceiveNoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ReceiveNote)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
boolean hasNote();
/**
* .protocol.Note note = 1;
* @return The note.
*/
org.vision.visionjsdk.proto.Common.Note getNote();
org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder();
}
/**
* Protobuf type {@code protocol.ReceiveNote}
*/
public static final class ReceiveNote extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ReceiveNote)
ReceiveNoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReceiveNote.newBuilder() to construct.
private ReceiveNote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReceiveNote() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReceiveNote();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReceiveNote(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
org.vision.visionjsdk.proto.Common.Note.Builder subBuilder = null;
if (note_ != null) {
subBuilder = note_.toBuilder();
}
note_ = input.readMessage(org.vision.visionjsdk.proto.Common.Note.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(note_);
note_ = subBuilder.buildPartial();
}
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveNote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.class, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder.class);
}
public static final int NOTE_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Common.Note note_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
@java.lang.Override
public boolean hasNote() {
return note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note getNote() {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
return getNote();
}
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 (note_ != null) {
output.writeMessage(1, getNote());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (note_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNote());
}
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 org.vision.visionjsdk.api.GrpcAPI.ReceiveNote)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote other = (org.vision.visionjsdk.api.GrpcAPI.ReceiveNote) obj;
if (hasNote() != other.hasNote()) return false;
if (hasNote()) {
if (!getNote()
.equals(other.getNote())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNote()) {
hash = (37 * hash) + NOTE_FIELD_NUMBER;
hash = (53 * hash) + getNote().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote 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.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote 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.vision.visionjsdk.api.GrpcAPI.ReceiveNote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote 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(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote 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;
}
/**
* Protobuf type {@code protocol.ReceiveNote}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ReceiveNote)
org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveNote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.class, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.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();
if (noteBuilder_ == null) {
note_ = null;
} else {
note_ = null;
noteBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveNote_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote build() {
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote result = new org.vision.visionjsdk.api.GrpcAPI.ReceiveNote(this);
if (noteBuilder_ == null) {
result.note_ = note_;
} else {
result.note_ = noteBuilder_.build();
}
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 org.vision.visionjsdk.api.GrpcAPI.ReceiveNote) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ReceiveNote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance()) return this;
if (other.hasNote()) {
mergeNote(other.getNote());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ReceiveNote) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Common.Note note_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder> noteBuilder_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
public boolean hasNote() {
return noteBuilder_ != null || note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
public org.vision.visionjsdk.proto.Common.Note getNote() {
if (noteBuilder_ == null) {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
} else {
return noteBuilder_.getMessage();
}
}
public Builder setNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
note_ = value;
onChanged();
} else {
noteBuilder_.setMessage(value);
}
return this;
}
public Builder setNote(
org.vision.visionjsdk.proto.Common.Note.Builder builderForValue) {
if (noteBuilder_ == null) {
note_ = builderForValue.build();
onChanged();
} else {
noteBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (note_ != null) {
note_ =
org.vision.visionjsdk.proto.Common.Note.newBuilder(note_).mergeFrom(value).buildPartial();
} else {
note_ = value;
}
onChanged();
} else {
noteBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearNote() {
if (noteBuilder_ == null) {
note_ = null;
onChanged();
} else {
note_ = null;
noteBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Common.Note.Builder getNoteBuilder() {
onChanged();
return getNoteFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
if (noteBuilder_ != null) {
return noteBuilder_.getMessageOrBuilder();
} else {
return note_ == null ?
org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>
getNoteFieldBuilder() {
if (noteBuilder_ == null) {
noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>(
getNote(),
getParentForChildren(),
isClean());
note_ = null;
}
return noteBuilder_;
}
@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:protocol.ReceiveNote)
}
// @@protoc_insertion_point(class_scope:protocol.ReceiveNote)
private static final org.vision.visionjsdk.api.GrpcAPI.ReceiveNote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ReceiveNote();
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReceiveNote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReceiveNote(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 org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpendNoteVRC20OrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SpendNoteVRC20)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
boolean hasNote();
/**
* .protocol.Note note = 1;
* @return The note.
*/
org.vision.visionjsdk.proto.Common.Note getNote();
org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder();
/**
* bytes alpha = 2;
* @return The alpha.
*/
com.google.protobuf.ByteString getAlpha();
/**
* bytes root = 3;
* @return The root.
*/
com.google.protobuf.ByteString getRoot();
/**
* bytes path = 4;
* @return The path.
*/
com.google.protobuf.ByteString getPath();
/**
* int64 pos = 5;
* @return The pos.
*/
long getPos();
}
/**
* Protobuf type {@code protocol.SpendNoteVRC20}
*/
public static final class SpendNoteVRC20 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SpendNoteVRC20)
SpendNoteVRC20OrBuilder {
private static final long serialVersionUID = 0L;
// Use SpendNoteVRC20.newBuilder() to construct.
private SpendNoteVRC20(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpendNoteVRC20() {
alpha_ = com.google.protobuf.ByteString.EMPTY;
root_ = com.google.protobuf.ByteString.EMPTY;
path_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpendNoteVRC20();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SpendNoteVRC20(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
org.vision.visionjsdk.proto.Common.Note.Builder subBuilder = null;
if (note_ != null) {
subBuilder = note_.toBuilder();
}
note_ = input.readMessage(org.vision.visionjsdk.proto.Common.Note.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(note_);
note_ = subBuilder.buildPartial();
}
break;
}
case 18: {
alpha_ = input.readBytes();
break;
}
case 26: {
root_ = input.readBytes();
break;
}
case 34: {
path_ = input.readBytes();
break;
}
case 40: {
pos_ = input.readInt64();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendNoteVRC20_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendNoteVRC20_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.class, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder.class);
}
public static final int NOTE_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Common.Note note_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
@java.lang.Override
public boolean hasNote() {
return note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note getNote() {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
return getNote();
}
public static final int ALPHA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString alpha_;
/**
* bytes alpha = 2;
* @return The alpha.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlpha() {
return alpha_;
}
public static final int ROOT_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString root_;
/**
* bytes root = 3;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
public static final int PATH_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString path_;
/**
* bytes path = 4;
* @return The path.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPath() {
return path_;
}
public static final int POS_FIELD_NUMBER = 5;
private long pos_;
/**
* int64 pos = 5;
* @return The pos.
*/
@java.lang.Override
public long getPos() {
return pos_;
}
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 (note_ != null) {
output.writeMessage(1, getNote());
}
if (!alpha_.isEmpty()) {
output.writeBytes(2, alpha_);
}
if (!root_.isEmpty()) {
output.writeBytes(3, root_);
}
if (!path_.isEmpty()) {
output.writeBytes(4, path_);
}
if (pos_ != 0L) {
output.writeInt64(5, pos_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (note_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNote());
}
if (!alpha_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, alpha_);
}
if (!root_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, root_);
}
if (!path_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, path_);
}
if (pos_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, pos_);
}
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 org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 other = (org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20) obj;
if (hasNote() != other.hasNote()) return false;
if (hasNote()) {
if (!getNote()
.equals(other.getNote())) return false;
}
if (!getAlpha()
.equals(other.getAlpha())) return false;
if (!getRoot()
.equals(other.getRoot())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (getPos()
!= other.getPos()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNote()) {
hash = (37 * hash) + NOTE_FIELD_NUMBER;
hash = (53 * hash) + getNote().hashCode();
}
hash = (37 * hash) + ALPHA_FIELD_NUMBER;
hash = (53 * hash) + getAlpha().hashCode();
hash = (37 * hash) + ROOT_FIELD_NUMBER;
hash = (53 * hash) + getRoot().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + POS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPos());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 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.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 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.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 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(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 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;
}
/**
* Protobuf type {@code protocol.SpendNoteVRC20}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SpendNoteVRC20)
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendNoteVRC20_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendNoteVRC20_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.class, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.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();
if (noteBuilder_ == null) {
note_ = null;
} else {
note_ = null;
noteBuilder_ = null;
}
alpha_ = com.google.protobuf.ByteString.EMPTY;
root_ = com.google.protobuf.ByteString.EMPTY;
path_ = com.google.protobuf.ByteString.EMPTY;
pos_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendNoteVRC20_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 build() {
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 result = new org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20(this);
if (noteBuilder_ == null) {
result.note_ = note_;
} else {
result.note_ = noteBuilder_.build();
}
result.alpha_ = alpha_;
result.root_ = root_;
result.path_ = path_;
result.pos_ = pos_;
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 org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance()) return this;
if (other.hasNote()) {
mergeNote(other.getNote());
}
if (other.getAlpha() != com.google.protobuf.ByteString.EMPTY) {
setAlpha(other.getAlpha());
}
if (other.getRoot() != com.google.protobuf.ByteString.EMPTY) {
setRoot(other.getRoot());
}
if (other.getPath() != com.google.protobuf.ByteString.EMPTY) {
setPath(other.getPath());
}
if (other.getPos() != 0L) {
setPos(other.getPos());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Common.Note note_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder> noteBuilder_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
public boolean hasNote() {
return noteBuilder_ != null || note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
public org.vision.visionjsdk.proto.Common.Note getNote() {
if (noteBuilder_ == null) {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
} else {
return noteBuilder_.getMessage();
}
}
public Builder setNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
note_ = value;
onChanged();
} else {
noteBuilder_.setMessage(value);
}
return this;
}
public Builder setNote(
org.vision.visionjsdk.proto.Common.Note.Builder builderForValue) {
if (noteBuilder_ == null) {
note_ = builderForValue.build();
onChanged();
} else {
noteBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (note_ != null) {
note_ =
org.vision.visionjsdk.proto.Common.Note.newBuilder(note_).mergeFrom(value).buildPartial();
} else {
note_ = value;
}
onChanged();
} else {
noteBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearNote() {
if (noteBuilder_ == null) {
note_ = null;
onChanged();
} else {
note_ = null;
noteBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Common.Note.Builder getNoteBuilder() {
onChanged();
return getNoteFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
if (noteBuilder_ != null) {
return noteBuilder_.getMessageOrBuilder();
} else {
return note_ == null ?
org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>
getNoteFieldBuilder() {
if (noteBuilder_ == null) {
noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>(
getNote(),
getParentForChildren(),
isClean());
note_ = null;
}
return noteBuilder_;
}
private com.google.protobuf.ByteString alpha_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes alpha = 2;
* @return The alpha.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlpha() {
return alpha_;
}
/**
* bytes alpha = 2;
* @param value The alpha to set.
* @return This builder for chaining.
*/
public Builder setAlpha(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
alpha_ = value;
onChanged();
return this;
}
/**
* bytes alpha = 2;
* @return This builder for chaining.
*/
public Builder clearAlpha() {
alpha_ = getDefaultInstance().getAlpha();
onChanged();
return this;
}
private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes root = 3;
* @return The root.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRoot() {
return root_;
}
/**
* bytes root = 3;
* @param value The root to set.
* @return This builder for chaining.
*/
public Builder setRoot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
root_ = value;
onChanged();
return this;
}
/**
* bytes root = 3;
* @return This builder for chaining.
*/
public Builder clearRoot() {
root_ = getDefaultInstance().getRoot();
onChanged();
return this;
}
private com.google.protobuf.ByteString path_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes path = 4;
* @return The path.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPath() {
return path_;
}
/**
* bytes path = 4;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* bytes path = 4;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
private long pos_ ;
/**
* int64 pos = 5;
* @return The pos.
*/
@java.lang.Override
public long getPos() {
return pos_;
}
/**
* int64 pos = 5;
* @param value The pos to set.
* @return This builder for chaining.
*/
public Builder setPos(long value) {
pos_ = value;
onChanged();
return this;
}
/**
* int64 pos = 5;
* @return This builder for chaining.
*/
public Builder clearPos() {
pos_ = 0L;
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:protocol.SpendNoteVRC20)
}
// @@protoc_insertion_point(class_scope:protocol.SpendNoteVRC20)
private static final org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20();
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpendNoteVRC20 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SpendNoteVRC20(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 org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrivateShieldedVRC20ParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.PrivateShieldedVRC20Parameters)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ask = 1;
* @return The ask.
*/
com.google.protobuf.ByteString getAsk();
/**
* bytes nsk = 2;
* @return The nsk.
*/
com.google.protobuf.ByteString getNsk();
/**
* bytes ovk = 3;
* @return The ovk.
*/
com.google.protobuf.ByteString getOvk();
/**
* string from_amount = 4;
* @return The fromAmount.
*/
java.lang.String getFromAmount();
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
com.google.protobuf.ByteString
getFromAmountBytes();
java.util.List
getShieldedSpendsList();
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index);
int getShieldedSpendsCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index);
java.util.List
getShieldedReceivesList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index);
int getShieldedReceivesCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index);
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
com.google.protobuf.ByteString getTransparentToAddress();
/**
* string to_amount = 8;
* @return The toAmount.
*/
java.lang.String getToAmount();
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
com.google.protobuf.ByteString
getToAmountBytes();
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
com.google.protobuf.ByteString getShieldedVRC20ContractAddress();
}
/**
* Protobuf type {@code protocol.PrivateShieldedVRC20Parameters}
*/
public static final class PrivateShieldedVRC20Parameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.PrivateShieldedVRC20Parameters)
PrivateShieldedVRC20ParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrivateShieldedVRC20Parameters.newBuilder() to construct.
private PrivateShieldedVRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrivateShieldedVRC20Parameters() {
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
fromAmount_ = "";
shieldedSpends_ = java.util.Collections.emptyList();
shieldedReceives_ = java.util.Collections.emptyList();
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
toAmount_ = "";
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrivateShieldedVRC20Parameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrivateShieldedVRC20Parameters(
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: {
ask_ = input.readBytes();
break;
}
case 18: {
nsk_ = input.readBytes();
break;
}
case 26: {
ovk_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
fromAmount_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
shieldedSpends_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shieldedReceives_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.parser(), extensionRegistry));
break;
}
case 58: {
transparentToAddress_ = input.readBytes();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
toAmount_ = s;
break;
}
case 74: {
shieldedVRC20ContractAddress_ = input.readBytes();
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.Builder.class);
}
public static final int ASK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ask_;
/**
* bytes ask = 1;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
public static final int NSK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nsk_;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
public static final int OVK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ovk_;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
public static final int FROM_AMOUNT_FIELD_NUMBER = 4;
private volatile java.lang.Object fromAmount_;
/**
* string from_amount = 4;
* @return The fromAmount.
*/
@java.lang.Override
public java.lang.String getFromAmount() {
java.lang.Object ref = fromAmount_;
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();
fromAmount_ = s;
return s;
}
}
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFromAmountBytes() {
java.lang.Object ref = fromAmount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHIELDED_SPENDS_FIELD_NUMBER = 5;
private java.util.List shieldedSpends_;
@java.lang.Override
public java.util.List getShieldedSpendsList() {
return shieldedSpends_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList() {
return shieldedSpends_;
}
@java.lang.Override
public int getShieldedSpendsCount() {
return shieldedSpends_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index) {
return shieldedSpends_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index) {
return shieldedSpends_.get(index);
}
public static final int SHIELDED_RECEIVES_FIELD_NUMBER = 6;
private java.util.List shieldedReceives_;
@java.lang.Override
public java.util.List getShieldedReceivesList() {
return shieldedReceives_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList() {
return shieldedReceives_;
}
@java.lang.Override
public int getShieldedReceivesCount() {
return shieldedReceives_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) {
return shieldedReceives_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index) {
return shieldedReceives_.get(index);
}
public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString transparentToAddress_;
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
public static final int TO_AMOUNT_FIELD_NUMBER = 8;
private volatile java.lang.Object toAmount_;
/**
* string to_amount = 8;
* @return The toAmount.
*/
@java.lang.Override
public java.lang.String getToAmount() {
java.lang.Object ref = toAmount_;
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();
toAmount_ = s;
return s;
}
}
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getToAmountBytes() {
java.lang.Object ref = toAmount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_;
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
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 (!ask_.isEmpty()) {
output.writeBytes(1, ask_);
}
if (!nsk_.isEmpty()) {
output.writeBytes(2, nsk_);
}
if (!ovk_.isEmpty()) {
output.writeBytes(3, ovk_);
}
if (!getFromAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromAmount_);
}
for (int i = 0; i < shieldedSpends_.size(); i++) {
output.writeMessage(5, shieldedSpends_.get(i));
}
for (int i = 0; i < shieldedReceives_.size(); i++) {
output.writeMessage(6, shieldedReceives_.get(i));
}
if (!transparentToAddress_.isEmpty()) {
output.writeBytes(7, transparentToAddress_);
}
if (!getToAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, toAmount_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
output.writeBytes(9, shieldedVRC20ContractAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ask_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ask_);
}
if (!nsk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, nsk_);
}
if (!ovk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ovk_);
}
if (!getFromAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromAmount_);
}
for (int i = 0; i < shieldedSpends_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, shieldedSpends_.get(i));
}
for (int i = 0; i < shieldedReceives_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, shieldedReceives_.get(i));
}
if (!transparentToAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, transparentToAddress_);
}
if (!getToAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, toAmount_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, shieldedVRC20ContractAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters other = (org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters) obj;
if (!getAsk()
.equals(other.getAsk())) return false;
if (!getNsk()
.equals(other.getNsk())) return false;
if (!getOvk()
.equals(other.getOvk())) return false;
if (!getFromAmount()
.equals(other.getFromAmount())) return false;
if (!getShieldedSpendsList()
.equals(other.getShieldedSpendsList())) return false;
if (!getShieldedReceivesList()
.equals(other.getShieldedReceivesList())) return false;
if (!getTransparentToAddress()
.equals(other.getTransparentToAddress())) return false;
if (!getToAmount()
.equals(other.getToAmount())) return false;
if (!getShieldedVRC20ContractAddress()
.equals(other.getShieldedVRC20ContractAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ASK_FIELD_NUMBER;
hash = (53 * hash) + getAsk().hashCode();
hash = (37 * hash) + NSK_FIELD_NUMBER;
hash = (53 * hash) + getNsk().hashCode();
hash = (37 * hash) + OVK_FIELD_NUMBER;
hash = (53 * hash) + getOvk().hashCode();
hash = (37 * hash) + FROM_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getFromAmount().hashCode();
if (getShieldedSpendsCount() > 0) {
hash = (37 * hash) + SHIELDED_SPENDS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedSpendsList().hashCode();
}
if (getShieldedReceivesCount() > 0) {
hash = (37 * hash) + SHIELDED_RECEIVES_FIELD_NUMBER;
hash = (53 * hash) + getShieldedReceivesList().hashCode();
}
hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTransparentToAddress().hashCode();
hash = (37 * hash) + TO_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getToAmount().hashCode();
hash = (37 * hash) + SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20ContractAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters 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(org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters 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;
}
/**
* Protobuf type {@code protocol.PrivateShieldedVRC20Parameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.PrivateShieldedVRC20Parameters)
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShieldedSpendsFieldBuilder();
getShieldedReceivesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ask_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
fromAmount_ = "";
if (shieldedSpendsBuilder_ == null) {
shieldedSpends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
shieldedSpendsBuilder_.clear();
}
if (shieldedReceivesBuilder_ == null) {
shieldedReceives_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
shieldedReceivesBuilder_.clear();
}
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
toAmount_ = "";
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters build() {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters result = new org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters(this);
int from_bitField0_ = bitField0_;
result.ask_ = ask_;
result.nsk_ = nsk_;
result.ovk_ = ovk_;
result.fromAmount_ = fromAmount_;
if (shieldedSpendsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.shieldedSpends_ = shieldedSpends_;
} else {
result.shieldedSpends_ = shieldedSpendsBuilder_.build();
}
if (shieldedReceivesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shieldedReceives_ = shieldedReceives_;
} else {
result.shieldedReceives_ = shieldedReceivesBuilder_.build();
}
result.transparentToAddress_ = transparentToAddress_;
result.toAmount_ = toAmount_;
result.shieldedVRC20ContractAddress_ = shieldedVRC20ContractAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters.getDefaultInstance()) return this;
if (other.getAsk() != com.google.protobuf.ByteString.EMPTY) {
setAsk(other.getAsk());
}
if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) {
setNsk(other.getNsk());
}
if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) {
setOvk(other.getOvk());
}
if (!other.getFromAmount().isEmpty()) {
fromAmount_ = other.fromAmount_;
onChanged();
}
if (shieldedSpendsBuilder_ == null) {
if (!other.shieldedSpends_.isEmpty()) {
if (shieldedSpends_.isEmpty()) {
shieldedSpends_ = other.shieldedSpends_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureShieldedSpendsIsMutable();
shieldedSpends_.addAll(other.shieldedSpends_);
}
onChanged();
}
} else {
if (!other.shieldedSpends_.isEmpty()) {
if (shieldedSpendsBuilder_.isEmpty()) {
shieldedSpendsBuilder_.dispose();
shieldedSpendsBuilder_ = null;
shieldedSpends_ = other.shieldedSpends_;
bitField0_ = (bitField0_ & ~0x00000001);
shieldedSpendsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShieldedSpendsFieldBuilder() : null;
} else {
shieldedSpendsBuilder_.addAllMessages(other.shieldedSpends_);
}
}
}
if (shieldedReceivesBuilder_ == null) {
if (!other.shieldedReceives_.isEmpty()) {
if (shieldedReceives_.isEmpty()) {
shieldedReceives_ = other.shieldedReceives_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShieldedReceivesIsMutable();
shieldedReceives_.addAll(other.shieldedReceives_);
}
onChanged();
}
} else {
if (!other.shieldedReceives_.isEmpty()) {
if (shieldedReceivesBuilder_.isEmpty()) {
shieldedReceivesBuilder_.dispose();
shieldedReceivesBuilder_ = null;
shieldedReceives_ = other.shieldedReceives_;
bitField0_ = (bitField0_ & ~0x00000002);
shieldedReceivesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShieldedReceivesFieldBuilder() : null;
} else {
shieldedReceivesBuilder_.addAllMessages(other.shieldedReceives_);
}
}
}
if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) {
setTransparentToAddress(other.getTransparentToAddress());
}
if (!other.getToAmount().isEmpty()) {
toAmount_ = other.toAmount_;
onChanged();
}
if (other.getShieldedVRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setShieldedVRC20ContractAddress(other.getShieldedVRC20ContractAddress());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString ask_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ask = 1;
* @return The ask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAsk() {
return ask_;
}
/**
* bytes ask = 1;
* @param value The ask to set.
* @return This builder for chaining.
*/
public Builder setAsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ask_ = value;
onChanged();
return this;
}
/**
* bytes ask = 1;
* @return This builder for chaining.
*/
public Builder clearAsk() {
ask_ = getDefaultInstance().getAsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
/**
* bytes nsk = 2;
* @param value The nsk to set.
* @return This builder for chaining.
*/
public Builder setNsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nsk_ = value;
onChanged();
return this;
}
/**
* bytes nsk = 2;
* @return This builder for chaining.
*/
public Builder clearNsk() {
nsk_ = getDefaultInstance().getNsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
/**
* bytes ovk = 3;
* @param value The ovk to set.
* @return This builder for chaining.
*/
public Builder setOvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ovk_ = value;
onChanged();
return this;
}
/**
* bytes ovk = 3;
* @return This builder for chaining.
*/
public Builder clearOvk() {
ovk_ = getDefaultInstance().getOvk();
onChanged();
return this;
}
private java.lang.Object fromAmount_ = "";
/**
* string from_amount = 4;
* @return The fromAmount.
*/
public java.lang.String getFromAmount() {
java.lang.Object ref = fromAmount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fromAmount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
public com.google.protobuf.ByteString
getFromAmountBytes() {
java.lang.Object ref = fromAmount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string from_amount = 4;
* @param value The fromAmount to set.
* @return This builder for chaining.
*/
public Builder setFromAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fromAmount_ = value;
onChanged();
return this;
}
/**
* string from_amount = 4;
* @return This builder for chaining.
*/
public Builder clearFromAmount() {
fromAmount_ = getDefaultInstance().getFromAmount();
onChanged();
return this;
}
/**
* string from_amount = 4;
* @param value The bytes for fromAmount to set.
* @return This builder for chaining.
*/
public Builder setFromAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fromAmount_ = value;
onChanged();
return this;
}
private java.util.List shieldedSpends_ =
java.util.Collections.emptyList();
private void ensureShieldedSpendsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = new java.util.ArrayList(shieldedSpends_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder> shieldedSpendsBuilder_;
public java.util.List getShieldedSpendsList() {
if (shieldedSpendsBuilder_ == null) {
return java.util.Collections.unmodifiableList(shieldedSpends_);
} else {
return shieldedSpendsBuilder_.getMessageList();
}
}
public int getShieldedSpendsCount() {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.size();
} else {
return shieldedSpendsBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index) {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.get(index);
} else {
return shieldedSpendsBuilder_.getMessage(index);
}
}
public Builder setShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.set(index, value);
onChanged();
} else {
shieldedSpendsBuilder_.setMessage(index, value);
}
return this;
}
public Builder setShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.set(index, builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addShieldedSpends(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(value);
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(value);
}
return this;
}
public Builder addShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(index, value);
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(index, value);
}
return this;
}
public Builder addShieldedSpends(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(index, builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllShieldedSpends(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20> values) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shieldedSpends_);
onChanged();
} else {
shieldedSpendsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearShieldedSpends() {
if (shieldedSpendsBuilder_ == null) {
shieldedSpends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
shieldedSpendsBuilder_.clear();
}
return this;
}
public Builder removeShieldedSpends(int index) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.remove(index);
onChanged();
} else {
shieldedSpendsBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder getShieldedSpendsBuilder(
int index) {
return getShieldedSpendsFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index) {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.get(index); } else {
return shieldedSpendsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList() {
if (shieldedSpendsBuilder_ != null) {
return shieldedSpendsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shieldedSpends_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder addShieldedSpendsBuilder() {
return getShieldedSpendsFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder addShieldedSpendsBuilder(
int index) {
return getShieldedSpendsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance());
}
public java.util.List
getShieldedSpendsBuilderList() {
return getShieldedSpendsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsFieldBuilder() {
if (shieldedSpendsBuilder_ == null) {
shieldedSpendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>(
shieldedSpends_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
shieldedSpends_ = null;
}
return shieldedSpendsBuilder_;
}
private java.util.List shieldedReceives_ =
java.util.Collections.emptyList();
private void ensureShieldedReceivesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = new java.util.ArrayList(shieldedReceives_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder> shieldedReceivesBuilder_;
public java.util.List getShieldedReceivesList() {
if (shieldedReceivesBuilder_ == null) {
return java.util.Collections.unmodifiableList(shieldedReceives_);
} else {
return shieldedReceivesBuilder_.getMessageList();
}
}
public int getShieldedReceivesCount() {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.size();
} else {
return shieldedReceivesBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.get(index);
} else {
return shieldedReceivesBuilder_.getMessage(index);
}
}
public Builder setShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.set(index, value);
onChanged();
} else {
shieldedReceivesBuilder_.setMessage(index, value);
}
return this;
}
public Builder setShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.set(index, builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addShieldedReceives(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(value);
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(value);
}
return this;
}
public Builder addShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(index, value);
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(index, value);
}
return this;
}
public Builder addShieldedReceives(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(index, builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllShieldedReceives(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNote> values) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shieldedReceives_);
onChanged();
} else {
shieldedReceivesBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearShieldedReceives() {
if (shieldedReceivesBuilder_ == null) {
shieldedReceives_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
shieldedReceivesBuilder_.clear();
}
return this;
}
public Builder removeShieldedReceives(int index) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.remove(index);
onChanged();
} else {
shieldedReceivesBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder getShieldedReceivesBuilder(
int index) {
return getShieldedReceivesFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index) {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.get(index); } else {
return shieldedReceivesBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList() {
if (shieldedReceivesBuilder_ != null) {
return shieldedReceivesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shieldedReceives_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder() {
return getShieldedReceivesFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder(
int index) {
return getShieldedReceivesFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance());
}
public java.util.List
getShieldedReceivesBuilderList() {
return getShieldedReceivesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesFieldBuilder() {
if (shieldedReceivesBuilder_ == null) {
shieldedReceivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>(
shieldedReceives_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
shieldedReceives_ = null;
}
return shieldedReceivesBuilder_;
}
private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
/**
* bytes transparent_to_address = 7;
* @param value The transparentToAddress to set.
* @return This builder for chaining.
*/
public Builder setTransparentToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transparentToAddress_ = value;
onChanged();
return this;
}
/**
* bytes transparent_to_address = 7;
* @return This builder for chaining.
*/
public Builder clearTransparentToAddress() {
transparentToAddress_ = getDefaultInstance().getTransparentToAddress();
onChanged();
return this;
}
private java.lang.Object toAmount_ = "";
/**
* string to_amount = 8;
* @return The toAmount.
*/
public java.lang.String getToAmount() {
java.lang.Object ref = toAmount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toAmount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
public com.google.protobuf.ByteString
getToAmountBytes() {
java.lang.Object ref = toAmount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string to_amount = 8;
* @param value The toAmount to set.
* @return This builder for chaining.
*/
public Builder setToAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
toAmount_ = value;
onChanged();
return this;
}
/**
* string to_amount = 8;
* @return This builder for chaining.
*/
public Builder clearToAmount() {
toAmount_ = getDefaultInstance().getToAmount();
onChanged();
return this;
}
/**
* string to_amount = 8;
* @param value The bytes for toAmount to set.
* @return This builder for chaining.
*/
public Builder setToAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
toAmount_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
/**
* bytes shielded_VRC20_contract_address = 9;
* @param value The shieldedVRC20ContractAddress to set.
* @return This builder for chaining.
*/
public Builder setShieldedVRC20ContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20ContractAddress_ = value;
onChanged();
return this;
}
/**
* bytes shielded_VRC20_contract_address = 9;
* @return This builder for chaining.
*/
public Builder clearShieldedVRC20ContractAddress() {
shieldedVRC20ContractAddress_ = getDefaultInstance().getShieldedVRC20ContractAddress();
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:protocol.PrivateShieldedVRC20Parameters)
}
// @@protoc_insertion_point(class_scope:protocol.PrivateShieldedVRC20Parameters)
private static final org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrivateShieldedVRC20Parameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrivateShieldedVRC20Parameters(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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20Parameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrivateShieldedVRC20ParametersWithoutAskOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.PrivateShieldedVRC20ParametersWithoutAsk)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ak = 1;
* @return The ak.
*/
com.google.protobuf.ByteString getAk();
/**
* bytes nsk = 2;
* @return The nsk.
*/
com.google.protobuf.ByteString getNsk();
/**
* bytes ovk = 3;
* @return The ovk.
*/
com.google.protobuf.ByteString getOvk();
/**
* string from_amount = 4;
* @return The fromAmount.
*/
java.lang.String getFromAmount();
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
com.google.protobuf.ByteString
getFromAmountBytes();
java.util.List
getShieldedSpendsList();
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index);
int getShieldedSpendsCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index);
java.util.List
getShieldedReceivesList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index);
int getShieldedReceivesCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index);
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
com.google.protobuf.ByteString getTransparentToAddress();
/**
* string to_amount = 8;
* @return The toAmount.
*/
java.lang.String getToAmount();
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
com.google.protobuf.ByteString
getToAmountBytes();
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
com.google.protobuf.ByteString getShieldedVRC20ContractAddress();
}
/**
* Protobuf type {@code protocol.PrivateShieldedVRC20ParametersWithoutAsk}
*/
public static final class PrivateShieldedVRC20ParametersWithoutAsk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.PrivateShieldedVRC20ParametersWithoutAsk)
PrivateShieldedVRC20ParametersWithoutAskOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrivateShieldedVRC20ParametersWithoutAsk.newBuilder() to construct.
private PrivateShieldedVRC20ParametersWithoutAsk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrivateShieldedVRC20ParametersWithoutAsk() {
ak_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
fromAmount_ = "";
shieldedSpends_ = java.util.Collections.emptyList();
shieldedReceives_ = java.util.Collections.emptyList();
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
toAmount_ = "";
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrivateShieldedVRC20ParametersWithoutAsk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrivateShieldedVRC20ParametersWithoutAsk(
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: {
ak_ = input.readBytes();
break;
}
case 18: {
nsk_ = input.readBytes();
break;
}
case 26: {
ovk_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
fromAmount_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
shieldedSpends_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shieldedReceives_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.parser(), extensionRegistry));
break;
}
case 58: {
transparentToAddress_ = input.readBytes();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
toAmount_ = s;
break;
}
case 74: {
shieldedVRC20ContractAddress_ = input.readBytes();
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.class, org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.Builder.class);
}
public static final int AK_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ak_;
/**
* bytes ak = 1;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
public static final int NSK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nsk_;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
public static final int OVK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ovk_;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
public static final int FROM_AMOUNT_FIELD_NUMBER = 4;
private volatile java.lang.Object fromAmount_;
/**
* string from_amount = 4;
* @return The fromAmount.
*/
@java.lang.Override
public java.lang.String getFromAmount() {
java.lang.Object ref = fromAmount_;
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();
fromAmount_ = s;
return s;
}
}
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFromAmountBytes() {
java.lang.Object ref = fromAmount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHIELDED_SPENDS_FIELD_NUMBER = 5;
private java.util.List shieldedSpends_;
@java.lang.Override
public java.util.List getShieldedSpendsList() {
return shieldedSpends_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList() {
return shieldedSpends_;
}
@java.lang.Override
public int getShieldedSpendsCount() {
return shieldedSpends_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index) {
return shieldedSpends_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index) {
return shieldedSpends_.get(index);
}
public static final int SHIELDED_RECEIVES_FIELD_NUMBER = 6;
private java.util.List shieldedReceives_;
@java.lang.Override
public java.util.List getShieldedReceivesList() {
return shieldedReceives_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList() {
return shieldedReceives_;
}
@java.lang.Override
public int getShieldedReceivesCount() {
return shieldedReceives_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) {
return shieldedReceives_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index) {
return shieldedReceives_.get(index);
}
public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString transparentToAddress_;
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
public static final int TO_AMOUNT_FIELD_NUMBER = 8;
private volatile java.lang.Object toAmount_;
/**
* string to_amount = 8;
* @return The toAmount.
*/
@java.lang.Override
public java.lang.String getToAmount() {
java.lang.Object ref = toAmount_;
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();
toAmount_ = s;
return s;
}
}
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getToAmountBytes() {
java.lang.Object ref = toAmount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_;
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
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 (!ak_.isEmpty()) {
output.writeBytes(1, ak_);
}
if (!nsk_.isEmpty()) {
output.writeBytes(2, nsk_);
}
if (!ovk_.isEmpty()) {
output.writeBytes(3, ovk_);
}
if (!getFromAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fromAmount_);
}
for (int i = 0; i < shieldedSpends_.size(); i++) {
output.writeMessage(5, shieldedSpends_.get(i));
}
for (int i = 0; i < shieldedReceives_.size(); i++) {
output.writeMessage(6, shieldedReceives_.get(i));
}
if (!transparentToAddress_.isEmpty()) {
output.writeBytes(7, transparentToAddress_);
}
if (!getToAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, toAmount_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
output.writeBytes(9, shieldedVRC20ContractAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ak_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ak_);
}
if (!nsk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, nsk_);
}
if (!ovk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ovk_);
}
if (!getFromAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fromAmount_);
}
for (int i = 0; i < shieldedSpends_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, shieldedSpends_.get(i));
}
for (int i = 0; i < shieldedReceives_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, shieldedReceives_.get(i));
}
if (!transparentToAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, transparentToAddress_);
}
if (!getToAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, toAmount_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, shieldedVRC20ContractAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk other = (org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk) obj;
if (!getAk()
.equals(other.getAk())) return false;
if (!getNsk()
.equals(other.getNsk())) return false;
if (!getOvk()
.equals(other.getOvk())) return false;
if (!getFromAmount()
.equals(other.getFromAmount())) return false;
if (!getShieldedSpendsList()
.equals(other.getShieldedSpendsList())) return false;
if (!getShieldedReceivesList()
.equals(other.getShieldedReceivesList())) return false;
if (!getTransparentToAddress()
.equals(other.getTransparentToAddress())) return false;
if (!getToAmount()
.equals(other.getToAmount())) return false;
if (!getShieldedVRC20ContractAddress()
.equals(other.getShieldedVRC20ContractAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AK_FIELD_NUMBER;
hash = (53 * hash) + getAk().hashCode();
hash = (37 * hash) + NSK_FIELD_NUMBER;
hash = (53 * hash) + getNsk().hashCode();
hash = (37 * hash) + OVK_FIELD_NUMBER;
hash = (53 * hash) + getOvk().hashCode();
hash = (37 * hash) + FROM_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getFromAmount().hashCode();
if (getShieldedSpendsCount() > 0) {
hash = (37 * hash) + SHIELDED_SPENDS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedSpendsList().hashCode();
}
if (getShieldedReceivesCount() > 0) {
hash = (37 * hash) + SHIELDED_RECEIVES_FIELD_NUMBER;
hash = (53 * hash) + getShieldedReceivesList().hashCode();
}
hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTransparentToAddress().hashCode();
hash = (37 * hash) + TO_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getToAmount().hashCode();
hash = (37 * hash) + SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20ContractAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk 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.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk 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.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk 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(org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk 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;
}
/**
* Protobuf type {@code protocol.PrivateShieldedVRC20ParametersWithoutAsk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.PrivateShieldedVRC20ParametersWithoutAsk)
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.class, org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShieldedSpendsFieldBuilder();
getShieldedReceivesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ak_ = com.google.protobuf.ByteString.EMPTY;
nsk_ = com.google.protobuf.ByteString.EMPTY;
ovk_ = com.google.protobuf.ByteString.EMPTY;
fromAmount_ = "";
if (shieldedSpendsBuilder_ == null) {
shieldedSpends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
shieldedSpendsBuilder_.clear();
}
if (shieldedReceivesBuilder_ == null) {
shieldedReceives_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
shieldedReceivesBuilder_.clear();
}
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
toAmount_ = "";
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk build() {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk result = new org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk(this);
int from_bitField0_ = bitField0_;
result.ak_ = ak_;
result.nsk_ = nsk_;
result.ovk_ = ovk_;
result.fromAmount_ = fromAmount_;
if (shieldedSpendsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = java.util.Collections.unmodifiableList(shieldedSpends_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.shieldedSpends_ = shieldedSpends_;
} else {
result.shieldedSpends_ = shieldedSpendsBuilder_.build();
}
if (shieldedReceivesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = java.util.Collections.unmodifiableList(shieldedReceives_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shieldedReceives_ = shieldedReceives_;
} else {
result.shieldedReceives_ = shieldedReceivesBuilder_.build();
}
result.transparentToAddress_ = transparentToAddress_;
result.toAmount_ = toAmount_;
result.shieldedVRC20ContractAddress_ = shieldedVRC20ContractAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk.getDefaultInstance()) return this;
if (other.getAk() != com.google.protobuf.ByteString.EMPTY) {
setAk(other.getAk());
}
if (other.getNsk() != com.google.protobuf.ByteString.EMPTY) {
setNsk(other.getNsk());
}
if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) {
setOvk(other.getOvk());
}
if (!other.getFromAmount().isEmpty()) {
fromAmount_ = other.fromAmount_;
onChanged();
}
if (shieldedSpendsBuilder_ == null) {
if (!other.shieldedSpends_.isEmpty()) {
if (shieldedSpends_.isEmpty()) {
shieldedSpends_ = other.shieldedSpends_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureShieldedSpendsIsMutable();
shieldedSpends_.addAll(other.shieldedSpends_);
}
onChanged();
}
} else {
if (!other.shieldedSpends_.isEmpty()) {
if (shieldedSpendsBuilder_.isEmpty()) {
shieldedSpendsBuilder_.dispose();
shieldedSpendsBuilder_ = null;
shieldedSpends_ = other.shieldedSpends_;
bitField0_ = (bitField0_ & ~0x00000001);
shieldedSpendsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShieldedSpendsFieldBuilder() : null;
} else {
shieldedSpendsBuilder_.addAllMessages(other.shieldedSpends_);
}
}
}
if (shieldedReceivesBuilder_ == null) {
if (!other.shieldedReceives_.isEmpty()) {
if (shieldedReceives_.isEmpty()) {
shieldedReceives_ = other.shieldedReceives_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShieldedReceivesIsMutable();
shieldedReceives_.addAll(other.shieldedReceives_);
}
onChanged();
}
} else {
if (!other.shieldedReceives_.isEmpty()) {
if (shieldedReceivesBuilder_.isEmpty()) {
shieldedReceivesBuilder_.dispose();
shieldedReceivesBuilder_ = null;
shieldedReceives_ = other.shieldedReceives_;
bitField0_ = (bitField0_ & ~0x00000002);
shieldedReceivesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShieldedReceivesFieldBuilder() : null;
} else {
shieldedReceivesBuilder_.addAllMessages(other.shieldedReceives_);
}
}
}
if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) {
setTransparentToAddress(other.getTransparentToAddress());
}
if (!other.getToAmount().isEmpty()) {
toAmount_ = other.toAmount_;
onChanged();
}
if (other.getShieldedVRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setShieldedVRC20ContractAddress(other.getShieldedVRC20ContractAddress());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ak = 1;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
/**
* bytes ak = 1;
* @param value The ak to set.
* @return This builder for chaining.
*/
public Builder setAk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ak_ = value;
onChanged();
return this;
}
/**
* bytes ak = 1;
* @return This builder for chaining.
*/
public Builder clearAk() {
ak_ = getDefaultInstance().getAk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nsk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nsk = 2;
* @return The nsk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNsk() {
return nsk_;
}
/**
* bytes nsk = 2;
* @param value The nsk to set.
* @return This builder for chaining.
*/
public Builder setNsk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nsk_ = value;
onChanged();
return this;
}
/**
* bytes nsk = 2;
* @return This builder for chaining.
*/
public Builder clearNsk() {
nsk_ = getDefaultInstance().getNsk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
/**
* bytes ovk = 3;
* @param value The ovk to set.
* @return This builder for chaining.
*/
public Builder setOvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ovk_ = value;
onChanged();
return this;
}
/**
* bytes ovk = 3;
* @return This builder for chaining.
*/
public Builder clearOvk() {
ovk_ = getDefaultInstance().getOvk();
onChanged();
return this;
}
private java.lang.Object fromAmount_ = "";
/**
* string from_amount = 4;
* @return The fromAmount.
*/
public java.lang.String getFromAmount() {
java.lang.Object ref = fromAmount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fromAmount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string from_amount = 4;
* @return The bytes for fromAmount.
*/
public com.google.protobuf.ByteString
getFromAmountBytes() {
java.lang.Object ref = fromAmount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string from_amount = 4;
* @param value The fromAmount to set.
* @return This builder for chaining.
*/
public Builder setFromAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fromAmount_ = value;
onChanged();
return this;
}
/**
* string from_amount = 4;
* @return This builder for chaining.
*/
public Builder clearFromAmount() {
fromAmount_ = getDefaultInstance().getFromAmount();
onChanged();
return this;
}
/**
* string from_amount = 4;
* @param value The bytes for fromAmount to set.
* @return This builder for chaining.
*/
public Builder setFromAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fromAmount_ = value;
onChanged();
return this;
}
private java.util.List shieldedSpends_ =
java.util.Collections.emptyList();
private void ensureShieldedSpendsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
shieldedSpends_ = new java.util.ArrayList(shieldedSpends_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder> shieldedSpendsBuilder_;
public java.util.List getShieldedSpendsList() {
if (shieldedSpendsBuilder_ == null) {
return java.util.Collections.unmodifiableList(shieldedSpends_);
} else {
return shieldedSpendsBuilder_.getMessageList();
}
}
public int getShieldedSpendsCount() {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.size();
} else {
return shieldedSpendsBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 getShieldedSpends(int index) {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.get(index);
} else {
return shieldedSpendsBuilder_.getMessage(index);
}
}
public Builder setShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.set(index, value);
onChanged();
} else {
shieldedSpendsBuilder_.setMessage(index, value);
}
return this;
}
public Builder setShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.set(index, builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addShieldedSpends(org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(value);
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(value);
}
return this;
}
public Builder addShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20 value) {
if (shieldedSpendsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(index, value);
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(index, value);
}
return this;
}
public Builder addShieldedSpends(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addShieldedSpends(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder builderForValue) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.add(index, builderForValue.build());
onChanged();
} else {
shieldedSpendsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllShieldedSpends(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20> values) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shieldedSpends_);
onChanged();
} else {
shieldedSpendsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearShieldedSpends() {
if (shieldedSpendsBuilder_ == null) {
shieldedSpends_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
shieldedSpendsBuilder_.clear();
}
return this;
}
public Builder removeShieldedSpends(int index) {
if (shieldedSpendsBuilder_ == null) {
ensureShieldedSpendsIsMutable();
shieldedSpends_.remove(index);
onChanged();
} else {
shieldedSpendsBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder getShieldedSpendsBuilder(
int index) {
return getShieldedSpendsFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder getShieldedSpendsOrBuilder(
int index) {
if (shieldedSpendsBuilder_ == null) {
return shieldedSpends_.get(index); } else {
return shieldedSpendsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsOrBuilderList() {
if (shieldedSpendsBuilder_ != null) {
return shieldedSpendsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shieldedSpends_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder addShieldedSpendsBuilder() {
return getShieldedSpendsFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder addShieldedSpendsBuilder(
int index) {
return getShieldedSpendsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.getDefaultInstance());
}
public java.util.List
getShieldedSpendsBuilderList() {
return getShieldedSpendsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>
getShieldedSpendsFieldBuilder() {
if (shieldedSpendsBuilder_ == null) {
shieldedSpendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendNoteVRC20OrBuilder>(
shieldedSpends_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
shieldedSpends_ = null;
}
return shieldedSpendsBuilder_;
}
private java.util.List shieldedReceives_ =
java.util.Collections.emptyList();
private void ensureShieldedReceivesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
shieldedReceives_ = new java.util.ArrayList(shieldedReceives_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder> shieldedReceivesBuilder_;
public java.util.List getShieldedReceivesList() {
if (shieldedReceivesBuilder_ == null) {
return java.util.Collections.unmodifiableList(shieldedReceives_);
} else {
return shieldedReceivesBuilder_.getMessageList();
}
}
public int getShieldedReceivesCount() {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.size();
} else {
return shieldedReceivesBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote getShieldedReceives(int index) {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.get(index);
} else {
return shieldedReceivesBuilder_.getMessage(index);
}
}
public Builder setShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.set(index, value);
onChanged();
} else {
shieldedReceivesBuilder_.setMessage(index, value);
}
return this;
}
public Builder setShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.set(index, builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addShieldedReceives(org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(value);
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(value);
}
return this;
}
public Builder addShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote value) {
if (shieldedReceivesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(index, value);
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(index, value);
}
return this;
}
public Builder addShieldedReceives(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addShieldedReceives(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder builderForValue) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.add(index, builderForValue.build());
onChanged();
} else {
shieldedReceivesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllShieldedReceives(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNote> values) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shieldedReceives_);
onChanged();
} else {
shieldedReceivesBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearShieldedReceives() {
if (shieldedReceivesBuilder_ == null) {
shieldedReceives_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
shieldedReceivesBuilder_.clear();
}
return this;
}
public Builder removeShieldedReceives(int index) {
if (shieldedReceivesBuilder_ == null) {
ensureShieldedReceivesIsMutable();
shieldedReceives_.remove(index);
onChanged();
} else {
shieldedReceivesBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder getShieldedReceivesBuilder(
int index) {
return getShieldedReceivesFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder getShieldedReceivesOrBuilder(
int index) {
if (shieldedReceivesBuilder_ == null) {
return shieldedReceives_.get(index); } else {
return shieldedReceivesBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesOrBuilderList() {
if (shieldedReceivesBuilder_ != null) {
return shieldedReceivesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shieldedReceives_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder() {
return getShieldedReceivesFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder addShieldedReceivesBuilder(
int index) {
return getShieldedReceivesFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.getDefaultInstance());
}
public java.util.List
getShieldedReceivesBuilderList() {
return getShieldedReceivesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>
getShieldedReceivesFieldBuilder() {
if (shieldedReceivesBuilder_ == null) {
shieldedReceivesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveNote, org.vision.visionjsdk.api.GrpcAPI.ReceiveNote.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveNoteOrBuilder>(
shieldedReceives_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
shieldedReceives_ = null;
}
return shieldedReceivesBuilder_;
}
private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes transparent_to_address = 7;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
/**
* bytes transparent_to_address = 7;
* @param value The transparentToAddress to set.
* @return This builder for chaining.
*/
public Builder setTransparentToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transparentToAddress_ = value;
onChanged();
return this;
}
/**
* bytes transparent_to_address = 7;
* @return This builder for chaining.
*/
public Builder clearTransparentToAddress() {
transparentToAddress_ = getDefaultInstance().getTransparentToAddress();
onChanged();
return this;
}
private java.lang.Object toAmount_ = "";
/**
* string to_amount = 8;
* @return The toAmount.
*/
public java.lang.String getToAmount() {
java.lang.Object ref = toAmount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toAmount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string to_amount = 8;
* @return The bytes for toAmount.
*/
public com.google.protobuf.ByteString
getToAmountBytes() {
java.lang.Object ref = toAmount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string to_amount = 8;
* @param value The toAmount to set.
* @return This builder for chaining.
*/
public Builder setToAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
toAmount_ = value;
onChanged();
return this;
}
/**
* string to_amount = 8;
* @return This builder for chaining.
*/
public Builder clearToAmount() {
toAmount_ = getDefaultInstance().getToAmount();
onChanged();
return this;
}
/**
* string to_amount = 8;
* @param value The bytes for toAmount to set.
* @return This builder for chaining.
*/
public Builder setToAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
toAmount_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes shielded_VRC20_contract_address = 9;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
/**
* bytes shielded_VRC20_contract_address = 9;
* @param value The shieldedVRC20ContractAddress to set.
* @return This builder for chaining.
*/
public Builder setShieldedVRC20ContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20ContractAddress_ = value;
onChanged();
return this;
}
/**
* bytes shielded_VRC20_contract_address = 9;
* @return This builder for chaining.
*/
public Builder clearShieldedVRC20ContractAddress() {
shieldedVRC20ContractAddress_ = getDefaultInstance().getShieldedVRC20ContractAddress();
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:protocol.PrivateShieldedVRC20ParametersWithoutAsk)
}
// @@protoc_insertion_point(class_scope:protocol.PrivateShieldedVRC20ParametersWithoutAsk)
private static final org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk();
}
public static org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrivateShieldedVRC20ParametersWithoutAsk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrivateShieldedVRC20ParametersWithoutAsk(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 org.vision.visionjsdk.api.GrpcAPI.PrivateShieldedVRC20ParametersWithoutAsk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpendDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SpendDescription)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
com.google.protobuf.ByteString getValueCommitment();
/**
*
* merkle root
*
*
* bytes anchor = 2;
* @return The anchor.
*/
com.google.protobuf.ByteString getAnchor();
/**
*
* used for check double spend
*
*
* bytes nullifier = 3;
* @return The nullifier.
*/
com.google.protobuf.ByteString getNullifier();
/**
*
* used for check spend authority signature
*
*
* bytes rk = 4;
* @return The rk.
*/
com.google.protobuf.ByteString getRk();
/**
* bytes zkproof = 5;
* @return The zkproof.
*/
com.google.protobuf.ByteString getZkproof();
/**
* bytes spend_authority_signature = 6;
* @return The spendAuthoritySignature.
*/
com.google.protobuf.ByteString getSpendAuthoritySignature();
}
/**
* Protobuf type {@code protocol.SpendDescription}
*/
public static final class SpendDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SpendDescription)
SpendDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpendDescription.newBuilder() to construct.
private SpendDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpendDescription() {
valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
anchor_ = com.google.protobuf.ByteString.EMPTY;
nullifier_ = com.google.protobuf.ByteString.EMPTY;
rk_ = com.google.protobuf.ByteString.EMPTY;
zkproof_ = com.google.protobuf.ByteString.EMPTY;
spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpendDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SpendDescription(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
valueCommitment_ = input.readBytes();
break;
}
case 18: {
anchor_ = input.readBytes();
break;
}
case 26: {
nullifier_ = input.readBytes();
break;
}
case 34: {
rk_ = input.readBytes();
break;
}
case 42: {
zkproof_ = input.readBytes();
break;
}
case 50: {
spendAuthoritySignature_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.SpendDescription.class, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder.class);
}
public static final int VALUE_COMMITMENT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString valueCommitment_;
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueCommitment() {
return valueCommitment_;
}
public static final int ANCHOR_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString anchor_;
/**
*
* merkle root
*
*
* bytes anchor = 2;
* @return The anchor.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAnchor() {
return anchor_;
}
public static final int NULLIFIER_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString nullifier_;
/**
*
* used for check double spend
*
*
* bytes nullifier = 3;
* @return The nullifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNullifier() {
return nullifier_;
}
public static final int RK_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString rk_;
/**
*
* used for check spend authority signature
*
*
* bytes rk = 4;
* @return The rk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRk() {
return rk_;
}
public static final int ZKPROOF_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString zkproof_;
/**
* bytes zkproof = 5;
* @return The zkproof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZkproof() {
return zkproof_;
}
public static final int SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString spendAuthoritySignature_;
/**
* bytes spend_authority_signature = 6;
* @return The spendAuthoritySignature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSpendAuthoritySignature() {
return spendAuthoritySignature_;
}
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 (!valueCommitment_.isEmpty()) {
output.writeBytes(1, valueCommitment_);
}
if (!anchor_.isEmpty()) {
output.writeBytes(2, anchor_);
}
if (!nullifier_.isEmpty()) {
output.writeBytes(3, nullifier_);
}
if (!rk_.isEmpty()) {
output.writeBytes(4, rk_);
}
if (!zkproof_.isEmpty()) {
output.writeBytes(5, zkproof_);
}
if (!spendAuthoritySignature_.isEmpty()) {
output.writeBytes(6, spendAuthoritySignature_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!valueCommitment_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, valueCommitment_);
}
if (!anchor_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, anchor_);
}
if (!nullifier_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, nullifier_);
}
if (!rk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, rk_);
}
if (!zkproof_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, zkproof_);
}
if (!spendAuthoritySignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, spendAuthoritySignature_);
}
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 org.vision.visionjsdk.api.GrpcAPI.SpendDescription)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.SpendDescription other = (org.vision.visionjsdk.api.GrpcAPI.SpendDescription) obj;
if (!getValueCommitment()
.equals(other.getValueCommitment())) return false;
if (!getAnchor()
.equals(other.getAnchor())) return false;
if (!getNullifier()
.equals(other.getNullifier())) return false;
if (!getRk()
.equals(other.getRk())) return false;
if (!getZkproof()
.equals(other.getZkproof())) return false;
if (!getSpendAuthoritySignature()
.equals(other.getSpendAuthoritySignature())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_COMMITMENT_FIELD_NUMBER;
hash = (53 * hash) + getValueCommitment().hashCode();
hash = (37 * hash) + ANCHOR_FIELD_NUMBER;
hash = (53 * hash) + getAnchor().hashCode();
hash = (37 * hash) + NULLIFIER_FIELD_NUMBER;
hash = (53 * hash) + getNullifier().hashCode();
hash = (37 * hash) + RK_FIELD_NUMBER;
hash = (53 * hash) + getRk().hashCode();
hash = (37 * hash) + ZKPROOF_FIELD_NUMBER;
hash = (53 * hash) + getZkproof().hashCode();
hash = (37 * hash) + SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSpendAuthoritySignature().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription 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.vision.visionjsdk.api.GrpcAPI.SpendDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription 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.vision.visionjsdk.api.GrpcAPI.SpendDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription 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(org.vision.visionjsdk.api.GrpcAPI.SpendDescription 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;
}
/**
* Protobuf type {@code protocol.SpendDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SpendDescription)
org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.SpendDescription.class, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.SpendDescription.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();
valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
anchor_ = com.google.protobuf.ByteString.EMPTY;
nullifier_ = com.google.protobuf.ByteString.EMPTY;
rk_ = com.google.protobuf.ByteString.EMPTY;
zkproof_ = com.google.protobuf.ByteString.EMPTY;
spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_SpendDescription_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.SpendDescription.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription build() {
org.vision.visionjsdk.api.GrpcAPI.SpendDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.SpendDescription result = new org.vision.visionjsdk.api.GrpcAPI.SpendDescription(this);
result.valueCommitment_ = valueCommitment_;
result.anchor_ = anchor_;
result.nullifier_ = nullifier_;
result.rk_ = rk_;
result.zkproof_ = zkproof_;
result.spendAuthoritySignature_ = spendAuthoritySignature_;
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 org.vision.visionjsdk.api.GrpcAPI.SpendDescription) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.SpendDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.SpendDescription other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.SpendDescription.getDefaultInstance()) return this;
if (other.getValueCommitment() != com.google.protobuf.ByteString.EMPTY) {
setValueCommitment(other.getValueCommitment());
}
if (other.getAnchor() != com.google.protobuf.ByteString.EMPTY) {
setAnchor(other.getAnchor());
}
if (other.getNullifier() != com.google.protobuf.ByteString.EMPTY) {
setNullifier(other.getNullifier());
}
if (other.getRk() != com.google.protobuf.ByteString.EMPTY) {
setRk(other.getRk());
}
if (other.getZkproof() != com.google.protobuf.ByteString.EMPTY) {
setZkproof(other.getZkproof());
}
if (other.getSpendAuthoritySignature() != com.google.protobuf.ByteString.EMPTY) {
setSpendAuthoritySignature(other.getSpendAuthoritySignature());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.SpendDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.SpendDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueCommitment() {
return valueCommitment_;
}
/**
* bytes value_commitment = 1;
* @param value The valueCommitment to set.
* @return This builder for chaining.
*/
public Builder setValueCommitment(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCommitment_ = value;
onChanged();
return this;
}
/**
* bytes value_commitment = 1;
* @return This builder for chaining.
*/
public Builder clearValueCommitment() {
valueCommitment_ = getDefaultInstance().getValueCommitment();
onChanged();
return this;
}
private com.google.protobuf.ByteString anchor_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* merkle root
*
*
* bytes anchor = 2;
* @return The anchor.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAnchor() {
return anchor_;
}
/**
*
* merkle root
*
*
* bytes anchor = 2;
* @param value The anchor to set.
* @return This builder for chaining.
*/
public Builder setAnchor(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
anchor_ = value;
onChanged();
return this;
}
/**
*
* merkle root
*
*
* bytes anchor = 2;
* @return This builder for chaining.
*/
public Builder clearAnchor() {
anchor_ = getDefaultInstance().getAnchor();
onChanged();
return this;
}
private com.google.protobuf.ByteString nullifier_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* used for check double spend
*
*
* bytes nullifier = 3;
* @return The nullifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNullifier() {
return nullifier_;
}
/**
*
* used for check double spend
*
*
* bytes nullifier = 3;
* @param value The nullifier to set.
* @return This builder for chaining.
*/
public Builder setNullifier(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nullifier_ = value;
onChanged();
return this;
}
/**
*
* used for check double spend
*
*
* bytes nullifier = 3;
* @return This builder for chaining.
*/
public Builder clearNullifier() {
nullifier_ = getDefaultInstance().getNullifier();
onChanged();
return this;
}
private com.google.protobuf.ByteString rk_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* used for check spend authority signature
*
*
* bytes rk = 4;
* @return The rk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRk() {
return rk_;
}
/**
*
* used for check spend authority signature
*
*
* bytes rk = 4;
* @param value The rk to set.
* @return This builder for chaining.
*/
public Builder setRk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
rk_ = value;
onChanged();
return this;
}
/**
*
* used for check spend authority signature
*
*
* bytes rk = 4;
* @return This builder for chaining.
*/
public Builder clearRk() {
rk_ = getDefaultInstance().getRk();
onChanged();
return this;
}
private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes zkproof = 5;
* @return The zkproof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZkproof() {
return zkproof_;
}
/**
* bytes zkproof = 5;
* @param value The zkproof to set.
* @return This builder for chaining.
*/
public Builder setZkproof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
zkproof_ = value;
onChanged();
return this;
}
/**
* bytes zkproof = 5;
* @return This builder for chaining.
*/
public Builder clearZkproof() {
zkproof_ = getDefaultInstance().getZkproof();
onChanged();
return this;
}
private com.google.protobuf.ByteString spendAuthoritySignature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes spend_authority_signature = 6;
* @return The spendAuthoritySignature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSpendAuthoritySignature() {
return spendAuthoritySignature_;
}
/**
* bytes spend_authority_signature = 6;
* @param value The spendAuthoritySignature to set.
* @return This builder for chaining.
*/
public Builder setSpendAuthoritySignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
spendAuthoritySignature_ = value;
onChanged();
return this;
}
/**
* bytes spend_authority_signature = 6;
* @return This builder for chaining.
*/
public Builder clearSpendAuthoritySignature() {
spendAuthoritySignature_ = getDefaultInstance().getSpendAuthoritySignature();
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:protocol.SpendDescription)
}
// @@protoc_insertion_point(class_scope:protocol.SpendDescription)
private static final org.vision.visionjsdk.api.GrpcAPI.SpendDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.SpendDescription();
}
public static org.vision.visionjsdk.api.GrpcAPI.SpendDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpendDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SpendDescription(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 org.vision.visionjsdk.api.GrpcAPI.SpendDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReceiveDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ReceiveDescription)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
com.google.protobuf.ByteString getValueCommitment();
/**
* bytes note_commitment = 2;
* @return The noteCommitment.
*/
com.google.protobuf.ByteString getNoteCommitment();
/**
*
* for Encryption
*
*
* bytes epk = 3;
* @return The epk.
*/
com.google.protobuf.ByteString getEpk();
/**
*
* Encryption for incoming, decrypt it with ivk
*
*
* bytes c_enc = 4;
* @return The cEnc.
*/
com.google.protobuf.ByteString getCEnc();
/**
*
* Encryption for audit, decrypt it with ovk
*
*
* bytes c_out = 5;
* @return The cOut.
*/
com.google.protobuf.ByteString getCOut();
/**
* bytes zkproof = 6;
* @return The zkproof.
*/
com.google.protobuf.ByteString getZkproof();
}
/**
* Protobuf type {@code protocol.ReceiveDescription}
*/
public static final class ReceiveDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ReceiveDescription)
ReceiveDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReceiveDescription.newBuilder() to construct.
private ReceiveDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReceiveDescription() {
valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
noteCommitment_ = com.google.protobuf.ByteString.EMPTY;
epk_ = com.google.protobuf.ByteString.EMPTY;
cEnc_ = com.google.protobuf.ByteString.EMPTY;
cOut_ = com.google.protobuf.ByteString.EMPTY;
zkproof_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReceiveDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReceiveDescription(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
valueCommitment_ = input.readBytes();
break;
}
case 18: {
noteCommitment_ = input.readBytes();
break;
}
case 26: {
epk_ = input.readBytes();
break;
}
case 34: {
cEnc_ = input.readBytes();
break;
}
case 42: {
cOut_ = input.readBytes();
break;
}
case 50: {
zkproof_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.class, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder.class);
}
public static final int VALUE_COMMITMENT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString valueCommitment_;
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueCommitment() {
return valueCommitment_;
}
public static final int NOTE_COMMITMENT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString noteCommitment_;
/**
* bytes note_commitment = 2;
* @return The noteCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNoteCommitment() {
return noteCommitment_;
}
public static final int EPK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString epk_;
/**
*
* for Encryption
*
*
* bytes epk = 3;
* @return The epk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEpk() {
return epk_;
}
public static final int C_ENC_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString cEnc_;
/**
*
* Encryption for incoming, decrypt it with ivk
*
*
* bytes c_enc = 4;
* @return The cEnc.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCEnc() {
return cEnc_;
}
public static final int C_OUT_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString cOut_;
/**
*
* Encryption for audit, decrypt it with ovk
*
*
* bytes c_out = 5;
* @return The cOut.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCOut() {
return cOut_;
}
public static final int ZKPROOF_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString zkproof_;
/**
* bytes zkproof = 6;
* @return The zkproof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZkproof() {
return zkproof_;
}
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 (!valueCommitment_.isEmpty()) {
output.writeBytes(1, valueCommitment_);
}
if (!noteCommitment_.isEmpty()) {
output.writeBytes(2, noteCommitment_);
}
if (!epk_.isEmpty()) {
output.writeBytes(3, epk_);
}
if (!cEnc_.isEmpty()) {
output.writeBytes(4, cEnc_);
}
if (!cOut_.isEmpty()) {
output.writeBytes(5, cOut_);
}
if (!zkproof_.isEmpty()) {
output.writeBytes(6, zkproof_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!valueCommitment_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, valueCommitment_);
}
if (!noteCommitment_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, noteCommitment_);
}
if (!epk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, epk_);
}
if (!cEnc_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, cEnc_);
}
if (!cOut_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, cOut_);
}
if (!zkproof_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, zkproof_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription other = (org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription) obj;
if (!getValueCommitment()
.equals(other.getValueCommitment())) return false;
if (!getNoteCommitment()
.equals(other.getNoteCommitment())) return false;
if (!getEpk()
.equals(other.getEpk())) return false;
if (!getCEnc()
.equals(other.getCEnc())) return false;
if (!getCOut()
.equals(other.getCOut())) return false;
if (!getZkproof()
.equals(other.getZkproof())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_COMMITMENT_FIELD_NUMBER;
hash = (53 * hash) + getValueCommitment().hashCode();
hash = (37 * hash) + NOTE_COMMITMENT_FIELD_NUMBER;
hash = (53 * hash) + getNoteCommitment().hashCode();
hash = (37 * hash) + EPK_FIELD_NUMBER;
hash = (53 * hash) + getEpk().hashCode();
hash = (37 * hash) + C_ENC_FIELD_NUMBER;
hash = (53 * hash) + getCEnc().hashCode();
hash = (37 * hash) + C_OUT_FIELD_NUMBER;
hash = (53 * hash) + getCOut().hashCode();
hash = (37 * hash) + ZKPROOF_FIELD_NUMBER;
hash = (53 * hash) + getZkproof().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription 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.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription 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.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription 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(org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription 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;
}
/**
* Protobuf type {@code protocol.ReceiveDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ReceiveDescription)
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.class, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.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();
valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
noteCommitment_ = com.google.protobuf.ByteString.EMPTY;
epk_ = com.google.protobuf.ByteString.EMPTY;
cEnc_ = com.google.protobuf.ByteString.EMPTY;
cOut_ = com.google.protobuf.ByteString.EMPTY;
zkproof_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ReceiveDescription_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription build() {
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription result = new org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription(this);
result.valueCommitment_ = valueCommitment_;
result.noteCommitment_ = noteCommitment_;
result.epk_ = epk_;
result.cEnc_ = cEnc_;
result.cOut_ = cOut_;
result.zkproof_ = zkproof_;
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 org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.getDefaultInstance()) return this;
if (other.getValueCommitment() != com.google.protobuf.ByteString.EMPTY) {
setValueCommitment(other.getValueCommitment());
}
if (other.getNoteCommitment() != com.google.protobuf.ByteString.EMPTY) {
setNoteCommitment(other.getNoteCommitment());
}
if (other.getEpk() != com.google.protobuf.ByteString.EMPTY) {
setEpk(other.getEpk());
}
if (other.getCEnc() != com.google.protobuf.ByteString.EMPTY) {
setCEnc(other.getCEnc());
}
if (other.getCOut() != com.google.protobuf.ByteString.EMPTY) {
setCOut(other.getCOut());
}
if (other.getZkproof() != com.google.protobuf.ByteString.EMPTY) {
setZkproof(other.getZkproof());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString valueCommitment_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value_commitment = 1;
* @return The valueCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueCommitment() {
return valueCommitment_;
}
/**
* bytes value_commitment = 1;
* @param value The valueCommitment to set.
* @return This builder for chaining.
*/
public Builder setValueCommitment(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCommitment_ = value;
onChanged();
return this;
}
/**
* bytes value_commitment = 1;
* @return This builder for chaining.
*/
public Builder clearValueCommitment() {
valueCommitment_ = getDefaultInstance().getValueCommitment();
onChanged();
return this;
}
private com.google.protobuf.ByteString noteCommitment_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes note_commitment = 2;
* @return The noteCommitment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNoteCommitment() {
return noteCommitment_;
}
/**
* bytes note_commitment = 2;
* @param value The noteCommitment to set.
* @return This builder for chaining.
*/
public Builder setNoteCommitment(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
noteCommitment_ = value;
onChanged();
return this;
}
/**
* bytes note_commitment = 2;
* @return This builder for chaining.
*/
public Builder clearNoteCommitment() {
noteCommitment_ = getDefaultInstance().getNoteCommitment();
onChanged();
return this;
}
private com.google.protobuf.ByteString epk_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* for Encryption
*
*
* bytes epk = 3;
* @return The epk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEpk() {
return epk_;
}
/**
*
* for Encryption
*
*
* bytes epk = 3;
* @param value The epk to set.
* @return This builder for chaining.
*/
public Builder setEpk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
epk_ = value;
onChanged();
return this;
}
/**
*
* for Encryption
*
*
* bytes epk = 3;
* @return This builder for chaining.
*/
public Builder clearEpk() {
epk_ = getDefaultInstance().getEpk();
onChanged();
return this;
}
private com.google.protobuf.ByteString cEnc_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Encryption for incoming, decrypt it with ivk
*
*
* bytes c_enc = 4;
* @return The cEnc.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCEnc() {
return cEnc_;
}
/**
*
* Encryption for incoming, decrypt it with ivk
*
*
* bytes c_enc = 4;
* @param value The cEnc to set.
* @return This builder for chaining.
*/
public Builder setCEnc(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
cEnc_ = value;
onChanged();
return this;
}
/**
*
* Encryption for incoming, decrypt it with ivk
*
*
* bytes c_enc = 4;
* @return This builder for chaining.
*/
public Builder clearCEnc() {
cEnc_ = getDefaultInstance().getCEnc();
onChanged();
return this;
}
private com.google.protobuf.ByteString cOut_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Encryption for audit, decrypt it with ovk
*
*
* bytes c_out = 5;
* @return The cOut.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCOut() {
return cOut_;
}
/**
*
* Encryption for audit, decrypt it with ovk
*
*
* bytes c_out = 5;
* @param value The cOut to set.
* @return This builder for chaining.
*/
public Builder setCOut(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
cOut_ = value;
onChanged();
return this;
}
/**
*
* Encryption for audit, decrypt it with ovk
*
*
* bytes c_out = 5;
* @return This builder for chaining.
*/
public Builder clearCOut() {
cOut_ = getDefaultInstance().getCOut();
onChanged();
return this;
}
private com.google.protobuf.ByteString zkproof_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes zkproof = 6;
* @return The zkproof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZkproof() {
return zkproof_;
}
/**
* bytes zkproof = 6;
* @param value The zkproof to set.
* @return This builder for chaining.
*/
public Builder setZkproof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
zkproof_ = value;
onChanged();
return this;
}
/**
* bytes zkproof = 6;
* @return This builder for chaining.
*/
public Builder clearZkproof() {
zkproof_ = getDefaultInstance().getZkproof();
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:protocol.ReceiveDescription)
}
// @@protoc_insertion_point(class_scope:protocol.ReceiveDescription)
private static final org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription();
}
public static org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReceiveDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReceiveDescription(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 org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShieldedVRC20ParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ShieldedVRC20Parameters)
com.google.protobuf.MessageOrBuilder {
java.util.List
getSpendDescriptionList();
org.vision.visionjsdk.api.GrpcAPI.SpendDescription getSpendDescription(int index);
int getSpendDescriptionCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder>
getSpendDescriptionOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder(
int index);
java.util.List
getReceiveDescriptionList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index);
int getReceiveDescriptionCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder>
getReceiveDescriptionOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder(
int index);
/**
* bytes binding_signature = 3;
* @return The bindingSignature.
*/
com.google.protobuf.ByteString getBindingSignature();
/**
* bytes message_hash = 4;
* @return The messageHash.
*/
com.google.protobuf.ByteString getMessageHash();
/**
* string trigger_contract_input = 5;
* @return The triggerContractInput.
*/
java.lang.String getTriggerContractInput();
/**
* string trigger_contract_input = 5;
* @return The bytes for triggerContractInput.
*/
com.google.protobuf.ByteString
getTriggerContractInputBytes();
/**
* string parameter_type = 6;
* @return The parameterType.
*/
java.lang.String getParameterType();
/**
* string parameter_type = 6;
* @return The bytes for parameterType.
*/
com.google.protobuf.ByteString
getParameterTypeBytes();
}
/**
* Protobuf type {@code protocol.ShieldedVRC20Parameters}
*/
public static final class ShieldedVRC20Parameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ShieldedVRC20Parameters)
ShieldedVRC20ParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShieldedVRC20Parameters.newBuilder() to construct.
private ShieldedVRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShieldedVRC20Parameters() {
spendDescription_ = java.util.Collections.emptyList();
receiveDescription_ = java.util.Collections.emptyList();
bindingSignature_ = com.google.protobuf.ByteString.EMPTY;
messageHash_ = com.google.protobuf.ByteString.EMPTY;
triggerContractInput_ = "";
parameterType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShieldedVRC20Parameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ShieldedVRC20Parameters(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
spendDescription_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
spendDescription_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.SpendDescription.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
receiveDescription_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
receiveDescription_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.parser(), extensionRegistry));
break;
}
case 26: {
bindingSignature_ = input.readBytes();
break;
}
case 34: {
messageHash_ = input.readBytes();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
triggerContractInput_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
parameterType_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
spendDescription_ = java.util.Collections.unmodifiableList(spendDescription_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
receiveDescription_ = java.util.Collections.unmodifiableList(receiveDescription_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder.class);
}
public static final int SPEND_DESCRIPTION_FIELD_NUMBER = 1;
private java.util.List spendDescription_;
@java.lang.Override
public java.util.List getSpendDescriptionList() {
return spendDescription_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder>
getSpendDescriptionOrBuilderList() {
return spendDescription_;
}
@java.lang.Override
public int getSpendDescriptionCount() {
return spendDescription_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription getSpendDescription(int index) {
return spendDescription_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder(
int index) {
return spendDescription_.get(index);
}
public static final int RECEIVE_DESCRIPTION_FIELD_NUMBER = 2;
private java.util.List receiveDescription_;
@java.lang.Override
public java.util.List getReceiveDescriptionList() {
return receiveDescription_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder>
getReceiveDescriptionOrBuilderList() {
return receiveDescription_;
}
@java.lang.Override
public int getReceiveDescriptionCount() {
return receiveDescription_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index) {
return receiveDescription_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder(
int index) {
return receiveDescription_.get(index);
}
public static final int BINDING_SIGNATURE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString bindingSignature_;
/**
* bytes binding_signature = 3;
* @return The bindingSignature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBindingSignature() {
return bindingSignature_;
}
public static final int MESSAGE_HASH_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString messageHash_;
/**
* bytes message_hash = 4;
* @return The messageHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessageHash() {
return messageHash_;
}
public static final int TRIGGER_CONTRACT_INPUT_FIELD_NUMBER = 5;
private volatile java.lang.Object triggerContractInput_;
/**
* string trigger_contract_input = 5;
* @return The triggerContractInput.
*/
@java.lang.Override
public java.lang.String getTriggerContractInput() {
java.lang.Object ref = triggerContractInput_;
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();
triggerContractInput_ = s;
return s;
}
}
/**
* string trigger_contract_input = 5;
* @return The bytes for triggerContractInput.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTriggerContractInputBytes() {
java.lang.Object ref = triggerContractInput_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
triggerContractInput_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETER_TYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object parameterType_;
/**
* string parameter_type = 6;
* @return The parameterType.
*/
@java.lang.Override
public java.lang.String getParameterType() {
java.lang.Object ref = parameterType_;
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();
parameterType_ = s;
return s;
}
}
/**
* string parameter_type = 6;
* @return The bytes for parameterType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParameterTypeBytes() {
java.lang.Object ref = parameterType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameterType_ = 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 {
for (int i = 0; i < spendDescription_.size(); i++) {
output.writeMessage(1, spendDescription_.get(i));
}
for (int i = 0; i < receiveDescription_.size(); i++) {
output.writeMessage(2, receiveDescription_.get(i));
}
if (!bindingSignature_.isEmpty()) {
output.writeBytes(3, bindingSignature_);
}
if (!messageHash_.isEmpty()) {
output.writeBytes(4, messageHash_);
}
if (!getTriggerContractInputBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, triggerContractInput_);
}
if (!getParameterTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parameterType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < spendDescription_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, spendDescription_.get(i));
}
for (int i = 0; i < receiveDescription_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, receiveDescription_.get(i));
}
if (!bindingSignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, bindingSignature_);
}
if (!messageHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, messageHash_);
}
if (!getTriggerContractInputBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, triggerContractInput_);
}
if (!getParameterTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parameterType_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters other = (org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters) obj;
if (!getSpendDescriptionList()
.equals(other.getSpendDescriptionList())) return false;
if (!getReceiveDescriptionList()
.equals(other.getReceiveDescriptionList())) return false;
if (!getBindingSignature()
.equals(other.getBindingSignature())) return false;
if (!getMessageHash()
.equals(other.getMessageHash())) return false;
if (!getTriggerContractInput()
.equals(other.getTriggerContractInput())) return false;
if (!getParameterType()
.equals(other.getParameterType())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSpendDescriptionCount() > 0) {
hash = (37 * hash) + SPEND_DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getSpendDescriptionList().hashCode();
}
if (getReceiveDescriptionCount() > 0) {
hash = (37 * hash) + RECEIVE_DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getReceiveDescriptionList().hashCode();
}
hash = (37 * hash) + BINDING_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getBindingSignature().hashCode();
hash = (37 * hash) + MESSAGE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getMessageHash().hashCode();
hash = (37 * hash) + TRIGGER_CONTRACT_INPUT_FIELD_NUMBER;
hash = (53 * hash) + getTriggerContractInput().hashCode();
hash = (37 * hash) + PARAMETER_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getParameterType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters 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(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters 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;
}
/**
* Protobuf type {@code protocol.ShieldedVRC20Parameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ShieldedVRC20Parameters)
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpendDescriptionFieldBuilder();
getReceiveDescriptionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (spendDescriptionBuilder_ == null) {
spendDescription_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
spendDescriptionBuilder_.clear();
}
if (receiveDescriptionBuilder_ == null) {
receiveDescription_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
receiveDescriptionBuilder_.clear();
}
bindingSignature_ = com.google.protobuf.ByteString.EMPTY;
messageHash_ = com.google.protobuf.ByteString.EMPTY;
triggerContractInput_ = "";
parameterType_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20Parameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters build() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters result = new org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters(this);
int from_bitField0_ = bitField0_;
if (spendDescriptionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
spendDescription_ = java.util.Collections.unmodifiableList(spendDescription_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.spendDescription_ = spendDescription_;
} else {
result.spendDescription_ = spendDescriptionBuilder_.build();
}
if (receiveDescriptionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
receiveDescription_ = java.util.Collections.unmodifiableList(receiveDescription_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.receiveDescription_ = receiveDescription_;
} else {
result.receiveDescription_ = receiveDescriptionBuilder_.build();
}
result.bindingSignature_ = bindingSignature_;
result.messageHash_ = messageHash_;
result.triggerContractInput_ = triggerContractInput_;
result.parameterType_ = parameterType_;
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.getDefaultInstance()) return this;
if (spendDescriptionBuilder_ == null) {
if (!other.spendDescription_.isEmpty()) {
if (spendDescription_.isEmpty()) {
spendDescription_ = other.spendDescription_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpendDescriptionIsMutable();
spendDescription_.addAll(other.spendDescription_);
}
onChanged();
}
} else {
if (!other.spendDescription_.isEmpty()) {
if (spendDescriptionBuilder_.isEmpty()) {
spendDescriptionBuilder_.dispose();
spendDescriptionBuilder_ = null;
spendDescription_ = other.spendDescription_;
bitField0_ = (bitField0_ & ~0x00000001);
spendDescriptionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpendDescriptionFieldBuilder() : null;
} else {
spendDescriptionBuilder_.addAllMessages(other.spendDescription_);
}
}
}
if (receiveDescriptionBuilder_ == null) {
if (!other.receiveDescription_.isEmpty()) {
if (receiveDescription_.isEmpty()) {
receiveDescription_ = other.receiveDescription_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureReceiveDescriptionIsMutable();
receiveDescription_.addAll(other.receiveDescription_);
}
onChanged();
}
} else {
if (!other.receiveDescription_.isEmpty()) {
if (receiveDescriptionBuilder_.isEmpty()) {
receiveDescriptionBuilder_.dispose();
receiveDescriptionBuilder_ = null;
receiveDescription_ = other.receiveDescription_;
bitField0_ = (bitField0_ & ~0x00000002);
receiveDescriptionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReceiveDescriptionFieldBuilder() : null;
} else {
receiveDescriptionBuilder_.addAllMessages(other.receiveDescription_);
}
}
}
if (other.getBindingSignature() != com.google.protobuf.ByteString.EMPTY) {
setBindingSignature(other.getBindingSignature());
}
if (other.getMessageHash() != com.google.protobuf.ByteString.EMPTY) {
setMessageHash(other.getMessageHash());
}
if (!other.getTriggerContractInput().isEmpty()) {
triggerContractInput_ = other.triggerContractInput_;
onChanged();
}
if (!other.getParameterType().isEmpty()) {
parameterType_ = other.parameterType_;
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 {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List spendDescription_ =
java.util.Collections.emptyList();
private void ensureSpendDescriptionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
spendDescription_ = new java.util.ArrayList(spendDescription_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendDescription, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder> spendDescriptionBuilder_;
public java.util.List getSpendDescriptionList() {
if (spendDescriptionBuilder_ == null) {
return java.util.Collections.unmodifiableList(spendDescription_);
} else {
return spendDescriptionBuilder_.getMessageList();
}
}
public int getSpendDescriptionCount() {
if (spendDescriptionBuilder_ == null) {
return spendDescription_.size();
} else {
return spendDescriptionBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription getSpendDescription(int index) {
if (spendDescriptionBuilder_ == null) {
return spendDescription_.get(index);
} else {
return spendDescriptionBuilder_.getMessage(index);
}
}
public Builder setSpendDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendDescription value) {
if (spendDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendDescriptionIsMutable();
spendDescription_.set(index, value);
onChanged();
} else {
spendDescriptionBuilder_.setMessage(index, value);
}
return this;
}
public Builder setSpendDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder builderForValue) {
if (spendDescriptionBuilder_ == null) {
ensureSpendDescriptionIsMutable();
spendDescription_.set(index, builderForValue.build());
onChanged();
} else {
spendDescriptionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addSpendDescription(org.vision.visionjsdk.api.GrpcAPI.SpendDescription value) {
if (spendDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendDescriptionIsMutable();
spendDescription_.add(value);
onChanged();
} else {
spendDescriptionBuilder_.addMessage(value);
}
return this;
}
public Builder addSpendDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendDescription value) {
if (spendDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendDescriptionIsMutable();
spendDescription_.add(index, value);
onChanged();
} else {
spendDescriptionBuilder_.addMessage(index, value);
}
return this;
}
public Builder addSpendDescription(
org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder builderForValue) {
if (spendDescriptionBuilder_ == null) {
ensureSpendDescriptionIsMutable();
spendDescription_.add(builderForValue.build());
onChanged();
} else {
spendDescriptionBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addSpendDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder builderForValue) {
if (spendDescriptionBuilder_ == null) {
ensureSpendDescriptionIsMutable();
spendDescription_.add(index, builderForValue.build());
onChanged();
} else {
spendDescriptionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllSpendDescription(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.SpendDescription> values) {
if (spendDescriptionBuilder_ == null) {
ensureSpendDescriptionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spendDescription_);
onChanged();
} else {
spendDescriptionBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearSpendDescription() {
if (spendDescriptionBuilder_ == null) {
spendDescription_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
spendDescriptionBuilder_.clear();
}
return this;
}
public Builder removeSpendDescription(int index) {
if (spendDescriptionBuilder_ == null) {
ensureSpendDescriptionIsMutable();
spendDescription_.remove(index);
onChanged();
} else {
spendDescriptionBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder getSpendDescriptionBuilder(
int index) {
return getSpendDescriptionFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder getSpendDescriptionOrBuilder(
int index) {
if (spendDescriptionBuilder_ == null) {
return spendDescription_.get(index); } else {
return spendDescriptionBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder>
getSpendDescriptionOrBuilderList() {
if (spendDescriptionBuilder_ != null) {
return spendDescriptionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spendDescription_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder addSpendDescriptionBuilder() {
return getSpendDescriptionFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.SpendDescription.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder addSpendDescriptionBuilder(
int index) {
return getSpendDescriptionFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.getDefaultInstance());
}
public java.util.List
getSpendDescriptionBuilderList() {
return getSpendDescriptionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendDescription, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder>
getSpendDescriptionFieldBuilder() {
if (spendDescriptionBuilder_ == null) {
spendDescriptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.SpendDescription, org.vision.visionjsdk.api.GrpcAPI.SpendDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.SpendDescriptionOrBuilder>(
spendDescription_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
spendDescription_ = null;
}
return spendDescriptionBuilder_;
}
private java.util.List receiveDescription_ =
java.util.Collections.emptyList();
private void ensureReceiveDescriptionIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
receiveDescription_ = new java.util.ArrayList(receiveDescription_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder> receiveDescriptionBuilder_;
public java.util.List getReceiveDescriptionList() {
if (receiveDescriptionBuilder_ == null) {
return java.util.Collections.unmodifiableList(receiveDescription_);
} else {
return receiveDescriptionBuilder_.getMessageList();
}
}
public int getReceiveDescriptionCount() {
if (receiveDescriptionBuilder_ == null) {
return receiveDescription_.size();
} else {
return receiveDescriptionBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription getReceiveDescription(int index) {
if (receiveDescriptionBuilder_ == null) {
return receiveDescription_.get(index);
} else {
return receiveDescriptionBuilder_.getMessage(index);
}
}
public Builder setReceiveDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription value) {
if (receiveDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReceiveDescriptionIsMutable();
receiveDescription_.set(index, value);
onChanged();
} else {
receiveDescriptionBuilder_.setMessage(index, value);
}
return this;
}
public Builder setReceiveDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder builderForValue) {
if (receiveDescriptionBuilder_ == null) {
ensureReceiveDescriptionIsMutable();
receiveDescription_.set(index, builderForValue.build());
onChanged();
} else {
receiveDescriptionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addReceiveDescription(org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription value) {
if (receiveDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReceiveDescriptionIsMutable();
receiveDescription_.add(value);
onChanged();
} else {
receiveDescriptionBuilder_.addMessage(value);
}
return this;
}
public Builder addReceiveDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription value) {
if (receiveDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReceiveDescriptionIsMutable();
receiveDescription_.add(index, value);
onChanged();
} else {
receiveDescriptionBuilder_.addMessage(index, value);
}
return this;
}
public Builder addReceiveDescription(
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder builderForValue) {
if (receiveDescriptionBuilder_ == null) {
ensureReceiveDescriptionIsMutable();
receiveDescription_.add(builderForValue.build());
onChanged();
} else {
receiveDescriptionBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addReceiveDescription(
int index, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder builderForValue) {
if (receiveDescriptionBuilder_ == null) {
ensureReceiveDescriptionIsMutable();
receiveDescription_.add(index, builderForValue.build());
onChanged();
} else {
receiveDescriptionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllReceiveDescription(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription> values) {
if (receiveDescriptionBuilder_ == null) {
ensureReceiveDescriptionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, receiveDescription_);
onChanged();
} else {
receiveDescriptionBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearReceiveDescription() {
if (receiveDescriptionBuilder_ == null) {
receiveDescription_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
receiveDescriptionBuilder_.clear();
}
return this;
}
public Builder removeReceiveDescription(int index) {
if (receiveDescriptionBuilder_ == null) {
ensureReceiveDescriptionIsMutable();
receiveDescription_.remove(index);
onChanged();
} else {
receiveDescriptionBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder getReceiveDescriptionBuilder(
int index) {
return getReceiveDescriptionFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder getReceiveDescriptionOrBuilder(
int index) {
if (receiveDescriptionBuilder_ == null) {
return receiveDescription_.get(index); } else {
return receiveDescriptionBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder>
getReceiveDescriptionOrBuilderList() {
if (receiveDescriptionBuilder_ != null) {
return receiveDescriptionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(receiveDescription_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder addReceiveDescriptionBuilder() {
return getReceiveDescriptionFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder addReceiveDescriptionBuilder(
int index) {
return getReceiveDescriptionFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.getDefaultInstance());
}
public java.util.List
getReceiveDescriptionBuilderList() {
return getReceiveDescriptionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder>
getReceiveDescriptionFieldBuilder() {
if (receiveDescriptionBuilder_ == null) {
receiveDescriptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescription.Builder, org.vision.visionjsdk.api.GrpcAPI.ReceiveDescriptionOrBuilder>(
receiveDescription_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
receiveDescription_ = null;
}
return receiveDescriptionBuilder_;
}
private com.google.protobuf.ByteString bindingSignature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes binding_signature = 3;
* @return The bindingSignature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBindingSignature() {
return bindingSignature_;
}
/**
* bytes binding_signature = 3;
* @param value The bindingSignature to set.
* @return This builder for chaining.
*/
public Builder setBindingSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bindingSignature_ = value;
onChanged();
return this;
}
/**
* bytes binding_signature = 3;
* @return This builder for chaining.
*/
public Builder clearBindingSignature() {
bindingSignature_ = getDefaultInstance().getBindingSignature();
onChanged();
return this;
}
private com.google.protobuf.ByteString messageHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes message_hash = 4;
* @return The messageHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessageHash() {
return messageHash_;
}
/**
* bytes message_hash = 4;
* @param value The messageHash to set.
* @return This builder for chaining.
*/
public Builder setMessageHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
messageHash_ = value;
onChanged();
return this;
}
/**
* bytes message_hash = 4;
* @return This builder for chaining.
*/
public Builder clearMessageHash() {
messageHash_ = getDefaultInstance().getMessageHash();
onChanged();
return this;
}
private java.lang.Object triggerContractInput_ = "";
/**
* string trigger_contract_input = 5;
* @return The triggerContractInput.
*/
public java.lang.String getTriggerContractInput() {
java.lang.Object ref = triggerContractInput_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
triggerContractInput_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string trigger_contract_input = 5;
* @return The bytes for triggerContractInput.
*/
public com.google.protobuf.ByteString
getTriggerContractInputBytes() {
java.lang.Object ref = triggerContractInput_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
triggerContractInput_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string trigger_contract_input = 5;
* @param value The triggerContractInput to set.
* @return This builder for chaining.
*/
public Builder setTriggerContractInput(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
triggerContractInput_ = value;
onChanged();
return this;
}
/**
* string trigger_contract_input = 5;
* @return This builder for chaining.
*/
public Builder clearTriggerContractInput() {
triggerContractInput_ = getDefaultInstance().getTriggerContractInput();
onChanged();
return this;
}
/**
* string trigger_contract_input = 5;
* @param value The bytes for triggerContractInput to set.
* @return This builder for chaining.
*/
public Builder setTriggerContractInputBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
triggerContractInput_ = value;
onChanged();
return this;
}
private java.lang.Object parameterType_ = "";
/**
* string parameter_type = 6;
* @return The parameterType.
*/
public java.lang.String getParameterType() {
java.lang.Object ref = parameterType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parameterType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string parameter_type = 6;
* @return The bytes for parameterType.
*/
public com.google.protobuf.ByteString
getParameterTypeBytes() {
java.lang.Object ref = parameterType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameterType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string parameter_type = 6;
* @param value The parameterType to set.
* @return This builder for chaining.
*/
public Builder setParameterType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parameterType_ = value;
onChanged();
return this;
}
/**
* string parameter_type = 6;
* @return This builder for chaining.
*/
public Builder clearParameterType() {
parameterType_ = getDefaultInstance().getParameterType();
onChanged();
return this;
}
/**
* string parameter_type = 6;
* @param value The bytes for parameterType to set.
* @return This builder for chaining.
*/
public Builder setParameterTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parameterType_ = 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:protocol.ShieldedVRC20Parameters)
}
// @@protoc_insertion_point(class_scope:protocol.ShieldedVRC20Parameters)
private static final org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShieldedVRC20Parameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShieldedVRC20Parameters(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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IvkDecryptVRC20ParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.IvkDecryptVRC20Parameters)
com.google.protobuf.MessageOrBuilder {
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
long getStartBlockIndex();
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
long getEndBlockIndex();
/**
* bytes shielded_VRC20_contract_address = 3;
* @return The shieldedVRC20ContractAddress.
*/
com.google.protobuf.ByteString getShieldedVRC20ContractAddress();
/**
* bytes ivk = 4;
* @return The ivk.
*/
com.google.protobuf.ByteString getIvk();
/**
* bytes ak = 5;
* @return The ak.
*/
com.google.protobuf.ByteString getAk();
/**
* bytes nk = 6;
* @return The nk.
*/
com.google.protobuf.ByteString getNk();
/**
* repeated string events = 7;
* @return A list containing the events.
*/
java.util.List
getEventsList();
/**
* repeated string events = 7;
* @return The count of events.
*/
int getEventsCount();
/**
* repeated string events = 7;
* @param index The index of the element to return.
* @return The events at the given index.
*/
java.lang.String getEvents(int index);
/**
* repeated string events = 7;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
com.google.protobuf.ByteString
getEventsBytes(int index);
}
/**
* Protobuf type {@code protocol.IvkDecryptVRC20Parameters}
*/
public static final class IvkDecryptVRC20Parameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.IvkDecryptVRC20Parameters)
IvkDecryptVRC20ParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use IvkDecryptVRC20Parameters.newBuilder() to construct.
private IvkDecryptVRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IvkDecryptVRC20Parameters() {
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
ivk_ = com.google.protobuf.ByteString.EMPTY;
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IvkDecryptVRC20Parameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IvkDecryptVRC20Parameters(
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 8: {
startBlockIndex_ = input.readInt64();
break;
}
case 16: {
endBlockIndex_ = input.readInt64();
break;
}
case 26: {
shieldedVRC20ContractAddress_ = input.readBytes();
break;
}
case 34: {
ivk_ = input.readBytes();
break;
}
case 42: {
ak_ = input.readBytes();
break;
}
case 50: {
nk_ = input.readBytes();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = events_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IvkDecryptVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.Builder.class);
}
public static final int START_BLOCK_INDEX_FIELD_NUMBER = 1;
private long startBlockIndex_;
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
@java.lang.Override
public long getStartBlockIndex() {
return startBlockIndex_;
}
public static final int END_BLOCK_INDEX_FIELD_NUMBER = 2;
private long endBlockIndex_;
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
@java.lang.Override
public long getEndBlockIndex() {
return endBlockIndex_;
}
public static final int SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_;
/**
* bytes shielded_VRC20_contract_address = 3;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
public static final int IVK_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString ivk_;
/**
* bytes ivk = 4;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
public static final int AK_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString ak_;
/**
* bytes ak = 5;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
public static final int NK_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString nk_;
/**
* bytes nk = 6;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
public static final int EVENTS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList events_;
/**
* repeated string events = 7;
* @return A list containing the events.
*/
public com.google.protobuf.ProtocolStringList
getEventsList() {
return events_;
}
/**
* repeated string events = 7;
* @return The count of events.
*/
public int getEventsCount() {
return events_.size();
}
/**
* repeated string events = 7;
* @param index The index of the element to return.
* @return The events at the given index.
*/
public java.lang.String getEvents(int index) {
return events_.get(index);
}
/**
* repeated string events = 7;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
public com.google.protobuf.ByteString
getEventsBytes(int index) {
return events_.getByteString(index);
}
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 (startBlockIndex_ != 0L) {
output.writeInt64(1, startBlockIndex_);
}
if (endBlockIndex_ != 0L) {
output.writeInt64(2, endBlockIndex_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
output.writeBytes(3, shieldedVRC20ContractAddress_);
}
if (!ivk_.isEmpty()) {
output.writeBytes(4, ivk_);
}
if (!ak_.isEmpty()) {
output.writeBytes(5, ak_);
}
if (!nk_.isEmpty()) {
output.writeBytes(6, nk_);
}
for (int i = 0; i < events_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, events_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startBlockIndex_);
}
if (endBlockIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, endBlockIndex_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, shieldedVRC20ContractAddress_);
}
if (!ivk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, ivk_);
}
if (!ak_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, ak_);
}
if (!nk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, nk_);
}
{
int dataSize = 0;
for (int i = 0; i < events_.size(); i++) {
dataSize += computeStringSizeNoTag(events_.getRaw(i));
}
size += dataSize;
size += 1 * getEventsList().size();
}
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 org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters other = (org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters) obj;
if (getStartBlockIndex()
!= other.getStartBlockIndex()) return false;
if (getEndBlockIndex()
!= other.getEndBlockIndex()) return false;
if (!getShieldedVRC20ContractAddress()
.equals(other.getShieldedVRC20ContractAddress())) return false;
if (!getIvk()
.equals(other.getIvk())) return false;
if (!getAk()
.equals(other.getAk())) return false;
if (!getNk()
.equals(other.getNk())) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_BLOCK_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockIndex());
hash = (37 * hash) + END_BLOCK_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndBlockIndex());
hash = (37 * hash) + SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20ContractAddress().hashCode();
hash = (37 * hash) + IVK_FIELD_NUMBER;
hash = (53 * hash) + getIvk().hashCode();
hash = (37 * hash) + AK_FIELD_NUMBER;
hash = (53 * hash) + getAk().hashCode();
hash = (37 * hash) + NK_FIELD_NUMBER;
hash = (53 * hash) + getNk().hashCode();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters 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(org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters 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;
}
/**
* Protobuf type {@code protocol.IvkDecryptVRC20Parameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.IvkDecryptVRC20Parameters)
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20ParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IvkDecryptVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.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();
startBlockIndex_ = 0L;
endBlockIndex_ = 0L;
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
ivk_ = com.google.protobuf.ByteString.EMPTY;
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_IvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters build() {
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters result = new org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters(this);
int from_bitField0_ = bitField0_;
result.startBlockIndex_ = startBlockIndex_;
result.endBlockIndex_ = endBlockIndex_;
result.shieldedVRC20ContractAddress_ = shieldedVRC20ContractAddress_;
result.ivk_ = ivk_;
result.ak_ = ak_;
result.nk_ = nk_;
if (((bitField0_ & 0x00000001) != 0)) {
events_ = events_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
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 org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters.getDefaultInstance()) return this;
if (other.getStartBlockIndex() != 0L) {
setStartBlockIndex(other.getStartBlockIndex());
}
if (other.getEndBlockIndex() != 0L) {
setEndBlockIndex(other.getEndBlockIndex());
}
if (other.getShieldedVRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setShieldedVRC20ContractAddress(other.getShieldedVRC20ContractAddress());
}
if (other.getIvk() != com.google.protobuf.ByteString.EMPTY) {
setIvk(other.getIvk());
}
if (other.getAk() != com.google.protobuf.ByteString.EMPTY) {
setAk(other.getAk());
}
if (other.getNk() != com.google.protobuf.ByteString.EMPTY) {
setNk(other.getNk());
}
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
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 {
org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long startBlockIndex_ ;
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
@java.lang.Override
public long getStartBlockIndex() {
return startBlockIndex_;
}
/**
* int64 start_block_index = 1;
* @param value The startBlockIndex to set.
* @return This builder for chaining.
*/
public Builder setStartBlockIndex(long value) {
startBlockIndex_ = value;
onChanged();
return this;
}
/**
* int64 start_block_index = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockIndex() {
startBlockIndex_ = 0L;
onChanged();
return this;
}
private long endBlockIndex_ ;
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
@java.lang.Override
public long getEndBlockIndex() {
return endBlockIndex_;
}
/**
* int64 end_block_index = 2;
* @param value The endBlockIndex to set.
* @return This builder for chaining.
*/
public Builder setEndBlockIndex(long value) {
endBlockIndex_ = value;
onChanged();
return this;
}
/**
* int64 end_block_index = 2;
* @return This builder for chaining.
*/
public Builder clearEndBlockIndex() {
endBlockIndex_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes shielded_VRC20_contract_address = 3;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
/**
* bytes shielded_VRC20_contract_address = 3;
* @param value The shieldedVRC20ContractAddress to set.
* @return This builder for chaining.
*/
public Builder setShieldedVRC20ContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20ContractAddress_ = value;
onChanged();
return this;
}
/**
* bytes shielded_VRC20_contract_address = 3;
* @return This builder for chaining.
*/
public Builder clearShieldedVRC20ContractAddress() {
shieldedVRC20ContractAddress_ = getDefaultInstance().getShieldedVRC20ContractAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString ivk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ivk = 4;
* @return The ivk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIvk() {
return ivk_;
}
/**
* bytes ivk = 4;
* @param value The ivk to set.
* @return This builder for chaining.
*/
public Builder setIvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ivk_ = value;
onChanged();
return this;
}
/**
* bytes ivk = 4;
* @return This builder for chaining.
*/
public Builder clearIvk() {
ivk_ = getDefaultInstance().getIvk();
onChanged();
return this;
}
private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ak = 5;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
/**
* bytes ak = 5;
* @param value The ak to set.
* @return This builder for chaining.
*/
public Builder setAk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ak_ = value;
onChanged();
return this;
}
/**
* bytes ak = 5;
* @return This builder for chaining.
*/
public Builder clearAk() {
ak_ = getDefaultInstance().getAk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nk = 6;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
/**
* bytes nk = 6;
* @param value The nk to set.
* @return This builder for chaining.
*/
public Builder setNk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nk_ = value;
onChanged();
return this;
}
/**
* bytes nk = 6;
* @return This builder for chaining.
*/
public Builder clearNk() {
nk_ = getDefaultInstance().getNk();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new com.google.protobuf.LazyStringArrayList(events_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string events = 7;
* @return A list containing the events.
*/
public com.google.protobuf.ProtocolStringList
getEventsList() {
return events_.getUnmodifiableView();
}
/**
* repeated string events = 7;
* @return The count of events.
*/
public int getEventsCount() {
return events_.size();
}
/**
* repeated string events = 7;
* @param index The index of the element to return.
* @return The events at the given index.
*/
public java.lang.String getEvents(int index) {
return events_.get(index);
}
/**
* repeated string events = 7;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
public com.google.protobuf.ByteString
getEventsBytes(int index) {
return events_.getByteString(index);
}
/**
* repeated string events = 7;
* @param index The index to set the value at.
* @param value The events to set.
* @return This builder for chaining.
*/
public Builder setEvents(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
return this;
}
/**
* repeated string events = 7;
* @param value The events to add.
* @return This builder for chaining.
*/
public Builder addEvents(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
return this;
}
/**
* repeated string events = 7;
* @param values The events to add.
* @return This builder for chaining.
*/
public Builder addAllEvents(
java.lang.Iterable values) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
return this;
}
/**
* repeated string events = 7;
* @return This builder for chaining.
*/
public Builder clearEvents() {
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string events = 7;
* @param value The bytes of the events to add.
* @return This builder for chaining.
*/
public Builder addEventsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEventsIsMutable();
events_.add(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:protocol.IvkDecryptVRC20Parameters)
}
// @@protoc_insertion_point(class_scope:protocol.IvkDecryptVRC20Parameters)
private static final org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IvkDecryptVRC20Parameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IvkDecryptVRC20Parameters(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 org.vision.visionjsdk.api.GrpcAPI.IvkDecryptVRC20Parameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OvkDecryptVRC20ParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.OvkDecryptVRC20Parameters)
com.google.protobuf.MessageOrBuilder {
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
long getStartBlockIndex();
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
long getEndBlockIndex();
/**
* bytes ovk = 3;
* @return The ovk.
*/
com.google.protobuf.ByteString getOvk();
/**
* bytes shielded_VRC20_contract_address = 4;
* @return The shieldedVRC20ContractAddress.
*/
com.google.protobuf.ByteString getShieldedVRC20ContractAddress();
/**
* repeated string events = 5;
* @return A list containing the events.
*/
java.util.List
getEventsList();
/**
* repeated string events = 5;
* @return The count of events.
*/
int getEventsCount();
/**
* repeated string events = 5;
* @param index The index of the element to return.
* @return The events at the given index.
*/
java.lang.String getEvents(int index);
/**
* repeated string events = 5;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
com.google.protobuf.ByteString
getEventsBytes(int index);
}
/**
* Protobuf type {@code protocol.OvkDecryptVRC20Parameters}
*/
public static final class OvkDecryptVRC20Parameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.OvkDecryptVRC20Parameters)
OvkDecryptVRC20ParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use OvkDecryptVRC20Parameters.newBuilder() to construct.
private OvkDecryptVRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OvkDecryptVRC20Parameters() {
ovk_ = com.google.protobuf.ByteString.EMPTY;
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OvkDecryptVRC20Parameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OvkDecryptVRC20Parameters(
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 8: {
startBlockIndex_ = input.readInt64();
break;
}
case 16: {
endBlockIndex_ = input.readInt64();
break;
}
case 26: {
ovk_ = input.readBytes();
break;
}
case 34: {
shieldedVRC20ContractAddress_ = input.readBytes();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = events_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_OvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_OvkDecryptVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.Builder.class);
}
public static final int START_BLOCK_INDEX_FIELD_NUMBER = 1;
private long startBlockIndex_;
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
@java.lang.Override
public long getStartBlockIndex() {
return startBlockIndex_;
}
public static final int END_BLOCK_INDEX_FIELD_NUMBER = 2;
private long endBlockIndex_;
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
@java.lang.Override
public long getEndBlockIndex() {
return endBlockIndex_;
}
public static final int OVK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ovk_;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
public static final int SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_;
/**
* bytes shielded_VRC20_contract_address = 4;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
public static final int EVENTS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList events_;
/**
* repeated string events = 5;
* @return A list containing the events.
*/
public com.google.protobuf.ProtocolStringList
getEventsList() {
return events_;
}
/**
* repeated string events = 5;
* @return The count of events.
*/
public int getEventsCount() {
return events_.size();
}
/**
* repeated string events = 5;
* @param index The index of the element to return.
* @return The events at the given index.
*/
public java.lang.String getEvents(int index) {
return events_.get(index);
}
/**
* repeated string events = 5;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
public com.google.protobuf.ByteString
getEventsBytes(int index) {
return events_.getByteString(index);
}
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 (startBlockIndex_ != 0L) {
output.writeInt64(1, startBlockIndex_);
}
if (endBlockIndex_ != 0L) {
output.writeInt64(2, endBlockIndex_);
}
if (!ovk_.isEmpty()) {
output.writeBytes(3, ovk_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
output.writeBytes(4, shieldedVRC20ContractAddress_);
}
for (int i = 0; i < events_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, events_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startBlockIndex_);
}
if (endBlockIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, endBlockIndex_);
}
if (!ovk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ovk_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, shieldedVRC20ContractAddress_);
}
{
int dataSize = 0;
for (int i = 0; i < events_.size(); i++) {
dataSize += computeStringSizeNoTag(events_.getRaw(i));
}
size += dataSize;
size += 1 * getEventsList().size();
}
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 org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters other = (org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters) obj;
if (getStartBlockIndex()
!= other.getStartBlockIndex()) return false;
if (getEndBlockIndex()
!= other.getEndBlockIndex()) return false;
if (!getOvk()
.equals(other.getOvk())) return false;
if (!getShieldedVRC20ContractAddress()
.equals(other.getShieldedVRC20ContractAddress())) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_BLOCK_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockIndex());
hash = (37 * hash) + END_BLOCK_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndBlockIndex());
hash = (37 * hash) + OVK_FIELD_NUMBER;
hash = (53 * hash) + getOvk().hashCode();
hash = (37 * hash) + SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20ContractAddress().hashCode();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters 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(org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters 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;
}
/**
* Protobuf type {@code protocol.OvkDecryptVRC20Parameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.OvkDecryptVRC20Parameters)
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20ParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_OvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_OvkDecryptVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.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();
startBlockIndex_ = 0L;
endBlockIndex_ = 0L;
ovk_ = com.google.protobuf.ByteString.EMPTY;
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_OvkDecryptVRC20Parameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters build() {
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters result = new org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters(this);
int from_bitField0_ = bitField0_;
result.startBlockIndex_ = startBlockIndex_;
result.endBlockIndex_ = endBlockIndex_;
result.ovk_ = ovk_;
result.shieldedVRC20ContractAddress_ = shieldedVRC20ContractAddress_;
if (((bitField0_ & 0x00000001) != 0)) {
events_ = events_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
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 org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters.getDefaultInstance()) return this;
if (other.getStartBlockIndex() != 0L) {
setStartBlockIndex(other.getStartBlockIndex());
}
if (other.getEndBlockIndex() != 0L) {
setEndBlockIndex(other.getEndBlockIndex());
}
if (other.getOvk() != com.google.protobuf.ByteString.EMPTY) {
setOvk(other.getOvk());
}
if (other.getShieldedVRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setShieldedVRC20ContractAddress(other.getShieldedVRC20ContractAddress());
}
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
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 {
org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long startBlockIndex_ ;
/**
* int64 start_block_index = 1;
* @return The startBlockIndex.
*/
@java.lang.Override
public long getStartBlockIndex() {
return startBlockIndex_;
}
/**
* int64 start_block_index = 1;
* @param value The startBlockIndex to set.
* @return This builder for chaining.
*/
public Builder setStartBlockIndex(long value) {
startBlockIndex_ = value;
onChanged();
return this;
}
/**
* int64 start_block_index = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockIndex() {
startBlockIndex_ = 0L;
onChanged();
return this;
}
private long endBlockIndex_ ;
/**
* int64 end_block_index = 2;
* @return The endBlockIndex.
*/
@java.lang.Override
public long getEndBlockIndex() {
return endBlockIndex_;
}
/**
* int64 end_block_index = 2;
* @param value The endBlockIndex to set.
* @return This builder for chaining.
*/
public Builder setEndBlockIndex(long value) {
endBlockIndex_ = value;
onChanged();
return this;
}
/**
* int64 end_block_index = 2;
* @return This builder for chaining.
*/
public Builder clearEndBlockIndex() {
endBlockIndex_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString ovk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ovk = 3;
* @return The ovk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOvk() {
return ovk_;
}
/**
* bytes ovk = 3;
* @param value The ovk to set.
* @return This builder for chaining.
*/
public Builder setOvk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ovk_ = value;
onChanged();
return this;
}
/**
* bytes ovk = 3;
* @return This builder for chaining.
*/
public Builder clearOvk() {
ovk_ = getDefaultInstance().getOvk();
onChanged();
return this;
}
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes shielded_VRC20_contract_address = 4;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
/**
* bytes shielded_VRC20_contract_address = 4;
* @param value The shieldedVRC20ContractAddress to set.
* @return This builder for chaining.
*/
public Builder setShieldedVRC20ContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20ContractAddress_ = value;
onChanged();
return this;
}
/**
* bytes shielded_VRC20_contract_address = 4;
* @return This builder for chaining.
*/
public Builder clearShieldedVRC20ContractAddress() {
shieldedVRC20ContractAddress_ = getDefaultInstance().getShieldedVRC20ContractAddress();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new com.google.protobuf.LazyStringArrayList(events_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string events = 5;
* @return A list containing the events.
*/
public com.google.protobuf.ProtocolStringList
getEventsList() {
return events_.getUnmodifiableView();
}
/**
* repeated string events = 5;
* @return The count of events.
*/
public int getEventsCount() {
return events_.size();
}
/**
* repeated string events = 5;
* @param index The index of the element to return.
* @return The events at the given index.
*/
public java.lang.String getEvents(int index) {
return events_.get(index);
}
/**
* repeated string events = 5;
* @param index The index of the value to return.
* @return The bytes of the events at the given index.
*/
public com.google.protobuf.ByteString
getEventsBytes(int index) {
return events_.getByteString(index);
}
/**
* repeated string events = 5;
* @param index The index to set the value at.
* @param value The events to set.
* @return This builder for chaining.
*/
public Builder setEvents(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
return this;
}
/**
* repeated string events = 5;
* @param value The events to add.
* @return This builder for chaining.
*/
public Builder addEvents(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
return this;
}
/**
* repeated string events = 5;
* @param values The events to add.
* @return This builder for chaining.
*/
public Builder addAllEvents(
java.lang.Iterable values) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
return this;
}
/**
* repeated string events = 5;
* @return This builder for chaining.
*/
public Builder clearEvents() {
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string events = 5;
* @param value The bytes of the events to add.
* @return This builder for chaining.
*/
public Builder addEventsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEventsIsMutable();
events_.add(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:protocol.OvkDecryptVRC20Parameters)
}
// @@protoc_insertion_point(class_scope:protocol.OvkDecryptVRC20Parameters)
private static final org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OvkDecryptVRC20Parameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OvkDecryptVRC20Parameters(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 org.vision.visionjsdk.api.GrpcAPI.OvkDecryptVRC20Parameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NfVRC20ParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.NfVRC20Parameters)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
boolean hasNote();
/**
* .protocol.Note note = 1;
* @return The note.
*/
org.vision.visionjsdk.proto.Common.Note getNote();
org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder();
/**
* bytes ak = 2;
* @return The ak.
*/
com.google.protobuf.ByteString getAk();
/**
* bytes nk = 3;
* @return The nk.
*/
com.google.protobuf.ByteString getNk();
/**
* int64 position = 4;
* @return The position.
*/
long getPosition();
/**
* bytes shielded_VRC20_contract_address = 5;
* @return The shieldedVRC20ContractAddress.
*/
com.google.protobuf.ByteString getShieldedVRC20ContractAddress();
}
/**
* Protobuf type {@code protocol.NfVRC20Parameters}
*/
public static final class NfVRC20Parameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.NfVRC20Parameters)
NfVRC20ParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use NfVRC20Parameters.newBuilder() to construct.
private NfVRC20Parameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NfVRC20Parameters() {
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NfVRC20Parameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NfVRC20Parameters(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
org.vision.visionjsdk.proto.Common.Note.Builder subBuilder = null;
if (note_ != null) {
subBuilder = note_.toBuilder();
}
note_ = input.readMessage(org.vision.visionjsdk.proto.Common.Note.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(note_);
note_ = subBuilder.buildPartial();
}
break;
}
case 18: {
ak_ = input.readBytes();
break;
}
case 26: {
nk_ = input.readBytes();
break;
}
case 32: {
position_ = input.readInt64();
break;
}
case 42: {
shieldedVRC20ContractAddress_ = input.readBytes();
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 org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NfVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NfVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.Builder.class);
}
public static final int NOTE_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Common.Note note_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
@java.lang.Override
public boolean hasNote() {
return note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note getNote() {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
return getNote();
}
public static final int AK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString ak_;
/**
* bytes ak = 2;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
public static final int NK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString nk_;
/**
* bytes nk = 3;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
public static final int POSITION_FIELD_NUMBER = 4;
private long position_;
/**
* int64 position = 4;
* @return The position.
*/
@java.lang.Override
public long getPosition() {
return position_;
}
public static final int SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_;
/**
* bytes shielded_VRC20_contract_address = 5;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
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 (note_ != null) {
output.writeMessage(1, getNote());
}
if (!ak_.isEmpty()) {
output.writeBytes(2, ak_);
}
if (!nk_.isEmpty()) {
output.writeBytes(3, nk_);
}
if (position_ != 0L) {
output.writeInt64(4, position_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
output.writeBytes(5, shieldedVRC20ContractAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (note_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNote());
}
if (!ak_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, ak_);
}
if (!nk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, nk_);
}
if (position_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, position_);
}
if (!shieldedVRC20ContractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, shieldedVRC20ContractAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters other = (org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters) obj;
if (hasNote() != other.hasNote()) return false;
if (hasNote()) {
if (!getNote()
.equals(other.getNote())) return false;
}
if (!getAk()
.equals(other.getAk())) return false;
if (!getNk()
.equals(other.getNk())) return false;
if (getPosition()
!= other.getPosition()) return false;
if (!getShieldedVRC20ContractAddress()
.equals(other.getShieldedVRC20ContractAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNote()) {
hash = (37 * hash) + NOTE_FIELD_NUMBER;
hash = (53 * hash) + getNote().hashCode();
}
hash = (37 * hash) + AK_FIELD_NUMBER;
hash = (53 * hash) + getAk().hashCode();
hash = (37 * hash) + NK_FIELD_NUMBER;
hash = (53 * hash) + getNk().hashCode();
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPosition());
hash = (37 * hash) + SHIELDED_VRC20_CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20ContractAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters 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.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters 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(org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters 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;
}
/**
* Protobuf type {@code protocol.NfVRC20Parameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.NfVRC20Parameters)
org.vision.visionjsdk.api.GrpcAPI.NfVRC20ParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NfVRC20Parameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NfVRC20Parameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.class, org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.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();
if (noteBuilder_ == null) {
note_ = null;
} else {
note_ = null;
noteBuilder_ = null;
}
ak_ = com.google.protobuf.ByteString.EMPTY;
nk_ = com.google.protobuf.ByteString.EMPTY;
position_ = 0L;
shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_NfVRC20Parameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters build() {
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters result = new org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters(this);
if (noteBuilder_ == null) {
result.note_ = note_;
} else {
result.note_ = noteBuilder_.build();
}
result.ak_ = ak_;
result.nk_ = nk_;
result.position_ = position_;
result.shieldedVRC20ContractAddress_ = shieldedVRC20ContractAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters.getDefaultInstance()) return this;
if (other.hasNote()) {
mergeNote(other.getNote());
}
if (other.getAk() != com.google.protobuf.ByteString.EMPTY) {
setAk(other.getAk());
}
if (other.getNk() != com.google.protobuf.ByteString.EMPTY) {
setNk(other.getNk());
}
if (other.getPosition() != 0L) {
setPosition(other.getPosition());
}
if (other.getShieldedVRC20ContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setShieldedVRC20ContractAddress(other.getShieldedVRC20ContractAddress());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Common.Note note_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder> noteBuilder_;
/**
* .protocol.Note note = 1;
* @return Whether the note field is set.
*/
public boolean hasNote() {
return noteBuilder_ != null || note_ != null;
}
/**
* .protocol.Note note = 1;
* @return The note.
*/
public org.vision.visionjsdk.proto.Common.Note getNote() {
if (noteBuilder_ == null) {
return note_ == null ? org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
} else {
return noteBuilder_.getMessage();
}
}
public Builder setNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
note_ = value;
onChanged();
} else {
noteBuilder_.setMessage(value);
}
return this;
}
public Builder setNote(
org.vision.visionjsdk.proto.Common.Note.Builder builderForValue) {
if (noteBuilder_ == null) {
note_ = builderForValue.build();
onChanged();
} else {
noteBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeNote(org.vision.visionjsdk.proto.Common.Note value) {
if (noteBuilder_ == null) {
if (note_ != null) {
note_ =
org.vision.visionjsdk.proto.Common.Note.newBuilder(note_).mergeFrom(value).buildPartial();
} else {
note_ = value;
}
onChanged();
} else {
noteBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearNote() {
if (noteBuilder_ == null) {
note_ = null;
onChanged();
} else {
note_ = null;
noteBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Common.Note.Builder getNoteBuilder() {
onChanged();
return getNoteFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Common.NoteOrBuilder getNoteOrBuilder() {
if (noteBuilder_ != null) {
return noteBuilder_.getMessageOrBuilder();
} else {
return note_ == null ?
org.vision.visionjsdk.proto.Common.Note.getDefaultInstance() : note_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>
getNoteFieldBuilder() {
if (noteBuilder_ == null) {
noteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Note, org.vision.visionjsdk.proto.Common.Note.Builder, org.vision.visionjsdk.proto.Common.NoteOrBuilder>(
getNote(),
getParentForChildren(),
isClean());
note_ = null;
}
return noteBuilder_;
}
private com.google.protobuf.ByteString ak_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ak = 2;
* @return The ak.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAk() {
return ak_;
}
/**
* bytes ak = 2;
* @param value The ak to set.
* @return This builder for chaining.
*/
public Builder setAk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ak_ = value;
onChanged();
return this;
}
/**
* bytes ak = 2;
* @return This builder for chaining.
*/
public Builder clearAk() {
ak_ = getDefaultInstance().getAk();
onChanged();
return this;
}
private com.google.protobuf.ByteString nk_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes nk = 3;
* @return The nk.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNk() {
return nk_;
}
/**
* bytes nk = 3;
* @param value The nk to set.
* @return This builder for chaining.
*/
public Builder setNk(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nk_ = value;
onChanged();
return this;
}
/**
* bytes nk = 3;
* @return This builder for chaining.
*/
public Builder clearNk() {
nk_ = getDefaultInstance().getNk();
onChanged();
return this;
}
private long position_ ;
/**
* int64 position = 4;
* @return The position.
*/
@java.lang.Override
public long getPosition() {
return position_;
}
/**
* int64 position = 4;
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(long value) {
position_ = value;
onChanged();
return this;
}
/**
* int64 position = 4;
* @return This builder for chaining.
*/
public Builder clearPosition() {
position_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString shieldedVRC20ContractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes shielded_VRC20_contract_address = 5;
* @return The shieldedVRC20ContractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getShieldedVRC20ContractAddress() {
return shieldedVRC20ContractAddress_;
}
/**
* bytes shielded_VRC20_contract_address = 5;
* @param value The shieldedVRC20ContractAddress to set.
* @return This builder for chaining.
*/
public Builder setShieldedVRC20ContractAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20ContractAddress_ = value;
onChanged();
return this;
}
/**
* bytes shielded_VRC20_contract_address = 5;
* @return This builder for chaining.
*/
public Builder clearShieldedVRC20ContractAddress() {
shieldedVRC20ContractAddress_ = getDefaultInstance().getShieldedVRC20ContractAddress();
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:protocol.NfVRC20Parameters)
}
// @@protoc_insertion_point(class_scope:protocol.NfVRC20Parameters)
private static final org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NfVRC20Parameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NfVRC20Parameters(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 org.vision.visionjsdk.api.GrpcAPI.NfVRC20Parameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShieldedVRC20TriggerContractParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ShieldedVRC20TriggerContractParameters)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return Whether the shieldedVRC20Parameters field is set.
*/
boolean hasShieldedVRC20Parameters();
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return The shieldedVRC20Parameters.
*/
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getShieldedVRC20Parameters();
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder getShieldedVRC20ParametersOrBuilder();
java.util.List
getSpendAuthoritySignatureList();
org.vision.visionjsdk.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index);
int getSpendAuthoritySignatureCount();
java.util.List extends org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder>
getSpendAuthoritySignatureOrBuilderList();
org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder(
int index);
/**
* string amount = 3;
* @return The amount.
*/
java.lang.String getAmount();
/**
* string amount = 3;
* @return The bytes for amount.
*/
com.google.protobuf.ByteString
getAmountBytes();
/**
* bytes transparent_to_address = 4;
* @return The transparentToAddress.
*/
com.google.protobuf.ByteString getTransparentToAddress();
}
/**
* Protobuf type {@code protocol.ShieldedVRC20TriggerContractParameters}
*/
public static final class ShieldedVRC20TriggerContractParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ShieldedVRC20TriggerContractParameters)
ShieldedVRC20TriggerContractParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShieldedVRC20TriggerContractParameters.newBuilder() to construct.
private ShieldedVRC20TriggerContractParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShieldedVRC20TriggerContractParameters() {
spendAuthoritySignature_ = java.util.Collections.emptyList();
amount_ = "";
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShieldedVRC20TriggerContractParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ShieldedVRC20TriggerContractParameters(
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: {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder subBuilder = null;
if (shieldedVRC20Parameters_ != null) {
subBuilder = shieldedVRC20Parameters_.toBuilder();
}
shieldedVRC20Parameters_ = input.readMessage(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shieldedVRC20Parameters_);
shieldedVRC20Parameters_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
spendAuthoritySignature_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
spendAuthoritySignature_.add(
input.readMessage(org.vision.visionjsdk.api.GrpcAPI.BytesMessage.parser(), extensionRegistry));
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
amount_ = s;
break;
}
case 34: {
transparentToAddress_ = input.readBytes();
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
spendAuthoritySignature_ = java.util.Collections.unmodifiableList(spendAuthoritySignature_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20TriggerContractParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.Builder.class);
}
public static final int SHIELDED_VRC20_PARAMETERS_FIELD_NUMBER = 1;
private org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters shieldedVRC20Parameters_;
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return Whether the shieldedVRC20Parameters field is set.
*/
@java.lang.Override
public boolean hasShieldedVRC20Parameters() {
return shieldedVRC20Parameters_ != null;
}
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return The shieldedVRC20Parameters.
*/
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getShieldedVRC20Parameters() {
return shieldedVRC20Parameters_ == null ? org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.getDefaultInstance() : shieldedVRC20Parameters_;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder getShieldedVRC20ParametersOrBuilder() {
return getShieldedVRC20Parameters();
}
public static final int SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER = 2;
private java.util.List spendAuthoritySignature_;
@java.lang.Override
public java.util.List getSpendAuthoritySignatureList() {
return spendAuthoritySignature_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder>
getSpendAuthoritySignatureOrBuilderList() {
return spendAuthoritySignature_;
}
@java.lang.Override
public int getSpendAuthoritySignatureCount() {
return spendAuthoritySignature_.size();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index) {
return spendAuthoritySignature_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder(
int index) {
return spendAuthoritySignature_.get(index);
}
public static final int AMOUNT_FIELD_NUMBER = 3;
private volatile java.lang.Object amount_;
/**
* string amount = 3;
* @return The amount.
*/
@java.lang.Override
public java.lang.String getAmount() {
java.lang.Object ref = amount_;
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();
amount_ = s;
return s;
}
}
/**
* string amount = 3;
* @return The bytes for amount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAmountBytes() {
java.lang.Object ref = amount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSPARENT_TO_ADDRESS_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString transparentToAddress_;
/**
* bytes transparent_to_address = 4;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
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 (shieldedVRC20Parameters_ != null) {
output.writeMessage(1, getShieldedVRC20Parameters());
}
for (int i = 0; i < spendAuthoritySignature_.size(); i++) {
output.writeMessage(2, spendAuthoritySignature_.get(i));
}
if (!getAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_);
}
if (!transparentToAddress_.isEmpty()) {
output.writeBytes(4, transparentToAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (shieldedVRC20Parameters_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getShieldedVRC20Parameters());
}
for (int i = 0; i < spendAuthoritySignature_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, spendAuthoritySignature_.get(i));
}
if (!getAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_);
}
if (!transparentToAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, transparentToAddress_);
}
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters)) {
return super.equals(obj);
}
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters other = (org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters) obj;
if (hasShieldedVRC20Parameters() != other.hasShieldedVRC20Parameters()) return false;
if (hasShieldedVRC20Parameters()) {
if (!getShieldedVRC20Parameters()
.equals(other.getShieldedVRC20Parameters())) return false;
}
if (!getSpendAuthoritySignatureList()
.equals(other.getSpendAuthoritySignatureList())) return false;
if (!getAmount()
.equals(other.getAmount())) return false;
if (!getTransparentToAddress()
.equals(other.getTransparentToAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasShieldedVRC20Parameters()) {
hash = (37 * hash) + SHIELDED_VRC20_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getShieldedVRC20Parameters().hashCode();
}
if (getSpendAuthoritySignatureCount() > 0) {
hash = (37 * hash) + SPEND_AUTHORITY_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSpendAuthoritySignatureList().hashCode();
}
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAmount().hashCode();
hash = (37 * hash) + TRANSPARENT_TO_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTransparentToAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters 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.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters 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.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters 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(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters 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;
}
/**
* Protobuf type {@code protocol.ShieldedVRC20TriggerContractParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ShieldedVRC20TriggerContractParameters)
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20TriggerContractParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.class, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.Builder.class);
}
// Construct using org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpendAuthoritySignatureFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (shieldedVRC20ParametersBuilder_ == null) {
shieldedVRC20Parameters_ = null;
} else {
shieldedVRC20Parameters_ = null;
shieldedVRC20ParametersBuilder_ = null;
}
if (spendAuthoritySignatureBuilder_ == null) {
spendAuthoritySignature_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
spendAuthoritySignatureBuilder_.clear();
}
amount_ = "";
transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.api.GrpcAPI.internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters getDefaultInstanceForType() {
return org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters build() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters buildPartial() {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters result = new org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters(this);
int from_bitField0_ = bitField0_;
if (shieldedVRC20ParametersBuilder_ == null) {
result.shieldedVRC20Parameters_ = shieldedVRC20Parameters_;
} else {
result.shieldedVRC20Parameters_ = shieldedVRC20ParametersBuilder_.build();
}
if (spendAuthoritySignatureBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
spendAuthoritySignature_ = java.util.Collections.unmodifiableList(spendAuthoritySignature_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.spendAuthoritySignature_ = spendAuthoritySignature_;
} else {
result.spendAuthoritySignature_ = spendAuthoritySignatureBuilder_.build();
}
result.amount_ = amount_;
result.transparentToAddress_ = transparentToAddress_;
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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters) {
return mergeFrom((org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters other) {
if (other == org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters.getDefaultInstance()) return this;
if (other.hasShieldedVRC20Parameters()) {
mergeShieldedVRC20Parameters(other.getShieldedVRC20Parameters());
}
if (spendAuthoritySignatureBuilder_ == null) {
if (!other.spendAuthoritySignature_.isEmpty()) {
if (spendAuthoritySignature_.isEmpty()) {
spendAuthoritySignature_ = other.spendAuthoritySignature_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.addAll(other.spendAuthoritySignature_);
}
onChanged();
}
} else {
if (!other.spendAuthoritySignature_.isEmpty()) {
if (spendAuthoritySignatureBuilder_.isEmpty()) {
spendAuthoritySignatureBuilder_.dispose();
spendAuthoritySignatureBuilder_ = null;
spendAuthoritySignature_ = other.spendAuthoritySignature_;
bitField0_ = (bitField0_ & ~0x00000001);
spendAuthoritySignatureBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpendAuthoritySignatureFieldBuilder() : null;
} else {
spendAuthoritySignatureBuilder_.addAllMessages(other.spendAuthoritySignature_);
}
}
}
if (!other.getAmount().isEmpty()) {
amount_ = other.amount_;
onChanged();
}
if (other.getTransparentToAddress() != com.google.protobuf.ByteString.EMPTY) {
setTransparentToAddress(other.getTransparentToAddress());
}
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 {
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters shieldedVRC20Parameters_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder> shieldedVRC20ParametersBuilder_;
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return Whether the shieldedVRC20Parameters field is set.
*/
public boolean hasShieldedVRC20Parameters() {
return shieldedVRC20ParametersBuilder_ != null || shieldedVRC20Parameters_ != null;
}
/**
* .protocol.ShieldedVRC20Parameters shielded_VRC20_Parameters = 1;
* @return The shieldedVRC20Parameters.
*/
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters getShieldedVRC20Parameters() {
if (shieldedVRC20ParametersBuilder_ == null) {
return shieldedVRC20Parameters_ == null ? org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.getDefaultInstance() : shieldedVRC20Parameters_;
} else {
return shieldedVRC20ParametersBuilder_.getMessage();
}
}
public Builder setShieldedVRC20Parameters(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters value) {
if (shieldedVRC20ParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shieldedVRC20Parameters_ = value;
onChanged();
} else {
shieldedVRC20ParametersBuilder_.setMessage(value);
}
return this;
}
public Builder setShieldedVRC20Parameters(
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder builderForValue) {
if (shieldedVRC20ParametersBuilder_ == null) {
shieldedVRC20Parameters_ = builderForValue.build();
onChanged();
} else {
shieldedVRC20ParametersBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeShieldedVRC20Parameters(org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters value) {
if (shieldedVRC20ParametersBuilder_ == null) {
if (shieldedVRC20Parameters_ != null) {
shieldedVRC20Parameters_ =
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.newBuilder(shieldedVRC20Parameters_).mergeFrom(value).buildPartial();
} else {
shieldedVRC20Parameters_ = value;
}
onChanged();
} else {
shieldedVRC20ParametersBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearShieldedVRC20Parameters() {
if (shieldedVRC20ParametersBuilder_ == null) {
shieldedVRC20Parameters_ = null;
onChanged();
} else {
shieldedVRC20Parameters_ = null;
shieldedVRC20ParametersBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder getShieldedVRC20ParametersBuilder() {
onChanged();
return getShieldedVRC20ParametersFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder getShieldedVRC20ParametersOrBuilder() {
if (shieldedVRC20ParametersBuilder_ != null) {
return shieldedVRC20ParametersBuilder_.getMessageOrBuilder();
} else {
return shieldedVRC20Parameters_ == null ?
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.getDefaultInstance() : shieldedVRC20Parameters_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder>
getShieldedVRC20ParametersFieldBuilder() {
if (shieldedVRC20ParametersBuilder_ == null) {
shieldedVRC20ParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20Parameters.Builder, org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20ParametersOrBuilder>(
getShieldedVRC20Parameters(),
getParentForChildren(),
isClean());
shieldedVRC20Parameters_ = null;
}
return shieldedVRC20ParametersBuilder_;
}
private java.util.List spendAuthoritySignature_ =
java.util.Collections.emptyList();
private void ensureSpendAuthoritySignatureIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
spendAuthoritySignature_ = new java.util.ArrayList(spendAuthoritySignature_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.BytesMessage, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder> spendAuthoritySignatureBuilder_;
public java.util.List getSpendAuthoritySignatureList() {
if (spendAuthoritySignatureBuilder_ == null) {
return java.util.Collections.unmodifiableList(spendAuthoritySignature_);
} else {
return spendAuthoritySignatureBuilder_.getMessageList();
}
}
public int getSpendAuthoritySignatureCount() {
if (spendAuthoritySignatureBuilder_ == null) {
return spendAuthoritySignature_.size();
} else {
return spendAuthoritySignatureBuilder_.getCount();
}
}
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage getSpendAuthoritySignature(int index) {
if (spendAuthoritySignatureBuilder_ == null) {
return spendAuthoritySignature_.get(index);
} else {
return spendAuthoritySignatureBuilder_.getMessage(index);
}
}
public Builder setSpendAuthoritySignature(
int index, org.vision.visionjsdk.api.GrpcAPI.BytesMessage value) {
if (spendAuthoritySignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.set(index, value);
onChanged();
} else {
spendAuthoritySignatureBuilder_.setMessage(index, value);
}
return this;
}
public Builder setSpendAuthoritySignature(
int index, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder builderForValue) {
if (spendAuthoritySignatureBuilder_ == null) {
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.set(index, builderForValue.build());
onChanged();
} else {
spendAuthoritySignatureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addSpendAuthoritySignature(org.vision.visionjsdk.api.GrpcAPI.BytesMessage value) {
if (spendAuthoritySignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.add(value);
onChanged();
} else {
spendAuthoritySignatureBuilder_.addMessage(value);
}
return this;
}
public Builder addSpendAuthoritySignature(
int index, org.vision.visionjsdk.api.GrpcAPI.BytesMessage value) {
if (spendAuthoritySignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.add(index, value);
onChanged();
} else {
spendAuthoritySignatureBuilder_.addMessage(index, value);
}
return this;
}
public Builder addSpendAuthoritySignature(
org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder builderForValue) {
if (spendAuthoritySignatureBuilder_ == null) {
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.add(builderForValue.build());
onChanged();
} else {
spendAuthoritySignatureBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addSpendAuthoritySignature(
int index, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder builderForValue) {
if (spendAuthoritySignatureBuilder_ == null) {
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.add(index, builderForValue.build());
onChanged();
} else {
spendAuthoritySignatureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllSpendAuthoritySignature(
java.lang.Iterable extends org.vision.visionjsdk.api.GrpcAPI.BytesMessage> values) {
if (spendAuthoritySignatureBuilder_ == null) {
ensureSpendAuthoritySignatureIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spendAuthoritySignature_);
onChanged();
} else {
spendAuthoritySignatureBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearSpendAuthoritySignature() {
if (spendAuthoritySignatureBuilder_ == null) {
spendAuthoritySignature_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
spendAuthoritySignatureBuilder_.clear();
}
return this;
}
public Builder removeSpendAuthoritySignature(int index) {
if (spendAuthoritySignatureBuilder_ == null) {
ensureSpendAuthoritySignatureIsMutable();
spendAuthoritySignature_.remove(index);
onChanged();
} else {
spendAuthoritySignatureBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder getSpendAuthoritySignatureBuilder(
int index) {
return getSpendAuthoritySignatureFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder getSpendAuthoritySignatureOrBuilder(
int index) {
if (spendAuthoritySignatureBuilder_ == null) {
return spendAuthoritySignature_.get(index); } else {
return spendAuthoritySignatureBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder>
getSpendAuthoritySignatureOrBuilderList() {
if (spendAuthoritySignatureBuilder_ != null) {
return spendAuthoritySignatureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spendAuthoritySignature_);
}
}
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder addSpendAuthoritySignatureBuilder() {
return getSpendAuthoritySignatureFieldBuilder().addBuilder(
org.vision.visionjsdk.api.GrpcAPI.BytesMessage.getDefaultInstance());
}
public org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder addSpendAuthoritySignatureBuilder(
int index) {
return getSpendAuthoritySignatureFieldBuilder().addBuilder(
index, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.getDefaultInstance());
}
public java.util.List
getSpendAuthoritySignatureBuilderList() {
return getSpendAuthoritySignatureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.BytesMessage, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder>
getSpendAuthoritySignatureFieldBuilder() {
if (spendAuthoritySignatureBuilder_ == null) {
spendAuthoritySignatureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.api.GrpcAPI.BytesMessage, org.vision.visionjsdk.api.GrpcAPI.BytesMessage.Builder, org.vision.visionjsdk.api.GrpcAPI.BytesMessageOrBuilder>(
spendAuthoritySignature_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
spendAuthoritySignature_ = null;
}
return spendAuthoritySignatureBuilder_;
}
private java.lang.Object amount_ = "";
/**
* string amount = 3;
* @return The amount.
*/
public java.lang.String getAmount() {
java.lang.Object ref = amount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
amount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string amount = 3;
* @return The bytes for amount.
*/
public com.google.protobuf.ByteString
getAmountBytes() {
java.lang.Object ref = amount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string amount = 3;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
amount_ = value;
onChanged();
return this;
}
/**
* string amount = 3;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = getDefaultInstance().getAmount();
onChanged();
return this;
}
/**
* string amount = 3;
* @param value The bytes for amount to set.
* @return This builder for chaining.
*/
public Builder setAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
amount_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString transparentToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes transparent_to_address = 4;
* @return The transparentToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransparentToAddress() {
return transparentToAddress_;
}
/**
* bytes transparent_to_address = 4;
* @param value The transparentToAddress to set.
* @return This builder for chaining.
*/
public Builder setTransparentToAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transparentToAddress_ = value;
onChanged();
return this;
}
/**
* bytes transparent_to_address = 4;
* @return This builder for chaining.
*/
public Builder clearTransparentToAddress() {
transparentToAddress_ = getDefaultInstance().getTransparentToAddress();
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:protocol.ShieldedVRC20TriggerContractParameters)
}
// @@protoc_insertion_point(class_scope:protocol.ShieldedVRC20TriggerContractParameters)
private static final org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters();
}
public static org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShieldedVRC20TriggerContractParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShieldedVRC20TriggerContractParameters(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 org.vision.visionjsdk.api.GrpcAPI.ShieldedVRC20TriggerContractParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_EmptyMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_EmptyMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_NumberMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_NumberMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_BytesMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_BytesMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_BlockLimit_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_BlockLimit_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_AccountAddressMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_AccountAddressMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_AccountIdMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_AccountIdMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_PaginatedMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_PaginatedMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_EasyTransferMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_EasyTransferMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_EasyTransferAssetMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_EasyTransferByPrivateMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ViewingKeyMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ViewingKeyMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ShieldedAddressInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_PaymentAddressMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_PaymentAddressMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_DiversifierMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_DiversifierMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ExpandedSpendingKeyMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_IncomingViewingKeyMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ReceiveNote_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ReceiveNote_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SpendNoteVRC20_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SpendNoteVRC20_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_PrivateShieldedVRC20Parameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SpendDescription_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SpendDescription_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ReceiveDescription_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ReceiveDescription_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ShieldedVRC20Parameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ShieldedVRC20Parameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_IvkDecryptVRC20Parameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_IvkDecryptVRC20Parameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_OvkDecryptVRC20Parameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_OvkDecryptVRC20Parameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_NfVRC20Parameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_NfVRC20Parameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_ShieldedVRC20TriggerContractParameters_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\rapi/api.proto\022\010protocol\032\021core/common.p" +
"roto\032\020core/chain.proto\032\023core/contract.pr" +
"oto\032\023core/response.proto\"\016\n\014EmptyMessage" +
"\"\034\n\rNumberMessage\022\013\n\003num\030\001 \001(\003\"\035\n\014BytesM" +
"essage\022\r\n\005value\030\001 \001(\014\".\n\nBlockLimit\022\020\n\010s" +
"tartNum\030\001 \001(\003\022\016\n\006endNum\030\002 \001(\003\"(\n\025Account" +
"AddressMessage\022\017\n\007address\030\003 \001(\014\"\036\n\020Accou" +
"ntIdMessage\022\n\n\002id\030\027 \001(\014\"1\n\020PaginatedMess" +
"age\022\016\n\006offset\030\001 \001(\003\022\r\n\005limit\030\002 \001(\003\"L\n\023Ea" +
"syTransferMessage\022\022\n\npassPhrase\030\001 \001(\014\022\021\n" +
"\ttoAddress\030\002 \001(\014\022\016\n\006amount\030\003 \001(\003\"b\n\030Easy" +
"TransferAssetMessage\022\022\n\npassPhrase\030\001 \001(\014" +
"\022\021\n\ttoAddress\030\002 \001(\014\022\017\n\007assetId\030\003 \001(\t\022\016\n\006" +
"amount\030\004 \001(\003\"U\n\034EasyTransferByPrivateMes" +
"sage\022\022\n\nprivateKey\030\001 \001(\014\022\021\n\ttoAddress\030\002 " +
"\001(\014\022\016\n\006amount\030\003 \001(\003\"k\n!EasyTransferAsset" +
"ByPrivateMessage\022\022\n\nprivateKey\030\001 \001(\014\022\021\n\t" +
"toAddress\030\002 \001(\014\022\017\n\007assetId\030\003 \001(\t\022\016\n\006amou" +
"nt\030\004 \001(\003\"+\n\021ViewingKeyMessage\022\n\n\002ak\030\001 \001(" +
"\014\022\n\n\002nk\030\002 \001(\014\"\236\001\n\023ShieldedAddressInfo\022\n\n" +
"\002sk\030\001 \001(\014\022\013\n\003ask\030\002 \001(\014\022\013\n\003nsk\030\003 \001(\014\022\013\n\003o" +
"vk\030\004 \001(\014\022\n\n\002ak\030\005 \001(\014\022\n\n\002nk\030\006 \001(\014\022\013\n\003ivk\030" +
"\007 \001(\014\022\t\n\001d\030\010 \001(\014\022\013\n\003pkD\030\t \001(\014\022\027\n\017payment" +
"_address\030\n \001(\t\"f\n\025PaymentAddressMessage\022" +
"\'\n\001d\030\001 \001(\0132\034.protocol.DiversifierMessage" +
"\022\013\n\003pkD\030\002 \001(\014\022\027\n\017payment_address\030\003 \001(\t\"\037" +
"\n\022DiversifierMessage\022\t\n\001d\030\001 \001(\014\"C\n\032Expan" +
"dedSpendingKeyMessage\022\013\n\003ask\030\001 \001(\014\022\013\n\003ns" +
"k\030\002 \001(\014\022\013\n\003ovk\030\003 \001(\014\"(\n\031IncomingViewingK" +
"eyMessage\022\013\n\003ivk\030\001 \001(\014\"\201\001\n$IncomingViewi" +
"ngKeyDiversifierMessage\0220\n\003ivk\030\001 \001(\0132#.p" +
"rotocol.IncomingViewingKeyMessage\022\'\n\001d\030\002" +
" \001(\0132\034.protocol.DiversifierMessage\"+\n\013Re" +
"ceiveNote\022\034\n\004note\030\001 \001(\0132\016.protocol.Note\"" +
"f\n\016SpendNoteVRC20\022\034\n\004note\030\001 \001(\0132\016.protoc" +
"ol.Note\022\r\n\005alpha\030\002 \001(\014\022\014\n\004root\030\003 \001(\014\022\014\n\004" +
"path\030\004 \001(\014\022\013\n\003pos\030\005 \001(\003\"\235\002\n\036PrivateShiel" +
"dedVRC20Parameters\022\013\n\003ask\030\001 \001(\014\022\013\n\003nsk\030\002" +
" \001(\014\022\013\n\003ovk\030\003 \001(\014\022\023\n\013from_amount\030\004 \001(\t\0221" +
"\n\017shielded_spends\030\005 \003(\0132\030.protocol.Spend" +
"NoteVRC20\0220\n\021shielded_receives\030\006 \003(\0132\025.p" +
"rotocol.ReceiveNote\022\036\n\026transparent_to_ad" +
"dress\030\007 \001(\014\022\021\n\tto_amount\030\010 \001(\t\022\'\n\037shield" +
"ed_VRC20_contract_address\030\t \001(\014\"\246\002\n(Priv" +
"ateShieldedVRC20ParametersWithoutAsk\022\n\n\002" +
"ak\030\001 \001(\014\022\013\n\003nsk\030\002 \001(\014\022\013\n\003ovk\030\003 \001(\014\022\023\n\013fr" +
"om_amount\030\004 \001(\t\0221\n\017shielded_spends\030\005 \003(\013" +
"2\030.protocol.SpendNoteVRC20\0220\n\021shielded_r" +
"eceives\030\006 \003(\0132\025.protocol.ReceiveNote\022\036\n\026" +
"transparent_to_address\030\007 \001(\014\022\021\n\tto_amoun" +
"t\030\010 \001(\t\022\'\n\037shielded_VRC20_contract_addre" +
"ss\030\t \001(\014\"\217\001\n\020SpendDescription\022\030\n\020value_c" +
"ommitment\030\001 \001(\014\022\016\n\006anchor\030\002 \001(\014\022\021\n\tnulli" +
"fier\030\003 \001(\014\022\n\n\002rk\030\004 \001(\014\022\017\n\007zkproof\030\005 \001(\014\022" +
"!\n\031spend_authority_signature\030\006 \001(\014\"\203\001\n\022R" +
"eceiveDescription\022\030\n\020value_commitment\030\001 " +
"\001(\014\022\027\n\017note_commitment\030\002 \001(\014\022\013\n\003epk\030\003 \001(" +
"\014\022\r\n\005c_enc\030\004 \001(\014\022\r\n\005c_out\030\005 \001(\014\022\017\n\007zkpro" +
"of\030\006 \001(\014\"\364\001\n\027ShieldedVRC20Parameters\0225\n\021" +
"spend_description\030\001 \003(\0132\032.protocol.Spend" +
"Description\0229\n\023receive_description\030\002 \003(\013" +
"2\034.protocol.ReceiveDescription\022\031\n\021bindin" +
"g_signature\030\003 \001(\014\022\024\n\014message_hash\030\004 \001(\014\022" +
"\036\n\026trigger_contract_input\030\005 \001(\t\022\026\n\016param" +
"eter_type\030\006 \001(\t\"\255\001\n\031IvkDecryptVRC20Param" +
"eters\022\031\n\021start_block_index\030\001 \001(\003\022\027\n\017end_" +
"block_index\030\002 \001(\003\022\'\n\037shielded_VRC20_cont" +
"ract_address\030\003 \001(\014\022\013\n\003ivk\030\004 \001(\014\022\n\n\002ak\030\005 " +
"\001(\014\022\n\n\002nk\030\006 \001(\014\022\016\n\006events\030\007 \003(\t\"\225\001\n\031OvkD" +
"ecryptVRC20Parameters\022\031\n\021start_block_ind" +
"ex\030\001 \001(\003\022\027\n\017end_block_index\030\002 \001(\003\022\013\n\003ovk" +
"\030\003 \001(\014\022\'\n\037shielded_VRC20_contract_addres" +
"s\030\004 \001(\014\022\016\n\006events\030\005 \003(\t\"\204\001\n\021NfVRC20Param" +
"eters\022\034\n\004note\030\001 \001(\0132\016.protocol.Note\022\n\n\002a" +
"k\030\002 \001(\014\022\n\n\002nk\030\003 \001(\014\022\020\n\010position\030\004 \001(\003\022\'\n" +
"\037shielded_VRC20_contract_address\030\005 \001(\014\"\331" +
"\001\n&ShieldedVRC20TriggerContractParameter" +
"s\022D\n\031shielded_VRC20_Parameters\030\001 \001(\0132!.p" +
"rotocol.ShieldedVRC20Parameters\0229\n\031spend" +
"_authority_signature\030\002 \003(\0132\026.protocol.By" +
"tesMessage\022\016\n\006amount\030\003 \001(\t\022\036\n\026transparen" +
"t_to_address\030\004 \001(\0142\263L\n\006Wallet\022L\n\024Broadca" +
"stTransaction\022\025.protocol.Transaction\032\033.p" +
"rotocol.TransactionReturn\"\000\022R\n\027CreateCom" +
"monTransaction\022\025.protocol.Transaction\032\036." +
"protocol.TransactionExtention\"\000\022I\n\rCreat" +
"eAccount\022\037.protocol.AccountCreateContrac" +
"t\032\025.protocol.Transaction\"\000\022S\n\016CreateAcco" +
"unt2\022\037.protocol.AccountCreateContract\032\036." +
"protocol.TransactionExtention\"\000\022I\n\rUpdat" +
"eAccount\022\037.protocol.AccountUpdateContrac" +
"t\032\025.protocol.Transaction\"\000\022S\n\016UpdateAcco" +
"unt2\022\037.protocol.AccountUpdateContract\032\036." +
"protocol.TransactionExtention\"\000\022G\n\014SetAc" +
"countId\022\036.protocol.SetAccountIdContract\032" +
"\025.protocol.Transaction\"\000\022f\n\027AccountPermi" +
"ssionUpdate\022).protocol.AccountPermission" +
"UpdateContract\032\036.protocol.TransactionExt" +
"ention\"\000\022H\n\021CreateTransaction\022\032.protocol" +
".TransferContract\032\025.protocol.Transaction" +
"\"\000\022R\n\022CreateTransaction2\022\032.protocol.Tran" +
"sferContract\032\036.protocol.TransactionExten" +
"tion\"\000\022I\n\020CreateAssetIssue\022\034.protocol.As" +
"setIssueContract\032\025.protocol.Transaction\"" +
"\000\022S\n\021CreateAssetIssue2\022\034.protocol.AssetI" +
"ssueContract\032\036.protocol.TransactionExten" +
"tion\"\000\022E\n\013UpdateAsset\022\035.protocol.UpdateA" +
"ssetContract\032\025.protocol.Transaction\"\000\022O\n" +
"\014UpdateAsset2\022\035.protocol.UpdateAssetCont" +
"ract\032\036.protocol.TransactionExtention\"\000\022I" +
"\n\rTransferAsset\022\037.protocol.TransferAsset" +
"Contract\032\025.protocol.Transaction\"\000\022S\n\016Tra" +
"nsferAsset2\022\037.protocol.TransferAssetCont" +
"ract\032\036.protocol.TransactionExtention\"\000\022Y" +
"\n\025ParticipateAssetIssue\022\'.protocol.Parti" +
"cipateAssetIssueContract\032\025.protocol.Tran" +
"saction\"\000\022c\n\026ParticipateAssetIssue2\022\'.pr" +
"otocol.ParticipateAssetIssueContract\032\036.p" +
"rotocol.TransactionExtention\"\000\022I\n\rUnfree" +
"zeAsset\022\037.protocol.UnfreezeAssetContract" +
"\032\025.protocol.Transaction\"\000\022S\n\016UnfreezeAss" +
"et2\022\037.protocol.UnfreezeAssetContract\032\036.p" +
"rotocol.TransactionExtention\"\000\022I\n\rCreate" +
"Witness\022\037.protocol.WitnessCreateContract" +
"\032\025.protocol.Transaction\"\000\022S\n\016CreateWitne" +
"ss2\022\037.protocol.WitnessCreateContract\032\036.p" +
"rotocol.TransactionExtention\"\000\022I\n\rUpdate" +
"Witness\022\037.protocol.WitnessUpdateContract" +
"\032\025.protocol.Transaction\"\000\022S\n\016UpdateWitne" +
"ss2\022\037.protocol.WitnessUpdateContract\032\036.p" +
"rotocol.TransactionExtention\"\000\022V\n\017Update" +
"Brokerage\022!.protocol.UpdateBrokerageCont" +
"ract\032\036.protocol.TransactionExtention\"\000\022L" +
"\n\022VoteWitnessAccount\022\035.protocol.VoteWitn" +
"essContract\032\025.protocol.Transaction\"\000\022V\n\023" +
"VoteWitnessAccount2\022\035.protocol.VoteWitne" +
"ssContract\032\036.protocol.TransactionExtenti" +
"on\"\000\022I\n\rFreezeBalance\022\037.protocol.FreezeB" +
"alanceContract\032\025.protocol.Transaction\"\000\022" +
"S\n\016FreezeBalance2\022\037.protocol.FreezeBalan" +
"ceContract\032\036.protocol.TransactionExtenti" +
"on\"\000\022M\n\017UnfreezeBalance\022!.protocol.Unfre" +
"ezeBalanceContract\032\025.protocol.Transactio" +
"n\"\000\022W\n\020UnfreezeBalance2\022!.protocol.Unfre" +
"ezeBalanceContract\032\036.protocol.Transactio" +
"nExtention\"\000\022M\n\017WithdrawBalance\022!.protoc" +
"ol.WithdrawBalanceContract\032\025.protocol.Tr" +
"ansaction\"\000\022W\n\020WithdrawBalance2\022!.protoc" +
"ol.WithdrawBalanceContract\032\036.protocol.Tr" +
"ansactionExtention\"\000\022T\n\016ProposalCreate\022 " +
".protocol.ProposalCreateContract\032\036.proto" +
"col.TransactionExtention\"\000\022V\n\017ProposalAp" +
"prove\022!.protocol.ProposalApproveContract" +
"\032\036.protocol.TransactionExtention\"\000\022T\n\016Pr" +
"oposalDelete\022 .protocol.ProposalDeleteCo" +
"ntract\032\036.protocol.TransactionExtention\"\000" +
"\022Q\n\016DeployContract\022\035.protocol.CreateSmar" +
"tContract\032\036.protocol.TransactionExtentio" +
"n\"\000\022R\n\rUpdateSetting\022\037.protocol.UpdateSe" +
"ttingContract\032\036.protocol.TransactionExte" +
"ntion\"\000\022Z\n\021UpdateEntropyLimit\022#.protocol." +
"UpdateEntropyLimitContract\032\036.protocol.Tra" +
"nsactionExtention\"\000\022P\n\020ClearContractABI\022" +
"\032.protocol.ClearABIContract\032\036.protocol.T" +
"ransactionExtention\"\000\022S\n\017TriggerContract" +
"\022\036.protocol.TriggerSmartContract\032\036.proto" +
"col.TransactionExtention\"\000\022[\n\027TriggerCon" +
"stantContract\022\036.protocol.TriggerSmartCon" +
"tract\032\036.protocol.TransactionExtention\"\000\022" +
"T\n\016ExchangeCreate\022 .protocol.ExchangeCre" +
"ateContract\032\036.protocol.TransactionExtent" +
"ion\"\000\022T\n\016ExchangeInject\022 .protocol.Excha" +
"ngeInjectContract\032\036.protocol.Transaction" +
"Extention\"\000\022X\n\020ExchangeWithdraw\022\".protoc" +
"ol.ExchangeWithdrawContract\032\036.protocol.T" +
"ransactionExtention\"\000\022^\n\023ExchangeTransac" +
"tion\022%.protocol.ExchangeTransactionContr" +
"act\032\036.protocol.TransactionExtention\"\000\022V\n" +
"\017MarketSellAsset\022!.protocol.MarketSellAs" +
"setContract\032\036.protocol.TransactionExtent" +
"ion\"\000\022Z\n\021MarketCancelOrder\022#.protocol.Ma" +
"rketCancelOrderContract\032\036.protocol.Trans" +
"actionExtention\"\000\022;\n\013GetNodeInfo\022\026.proto" +
"col.EmptyMessage\032\022.protocol.NodeInfo\"\000\0229" +
"\n\tListNodes\022\026.protocol.EmptyMessage\032\022.pr" +
"otocol.NodeList\"\000\022I\n\022GetChainParameters\022" +
"\026.protocol.EmptyMessage\032\031.protocol.Chain" +
"Parameters\"\000\022E\n\020TotalTransaction\022\026.proto" +
"col.EmptyMessage\032\027.protocol.NumberMessag" +
"e\"\000\022K\n\026GetNextMaintenanceTime\022\026.protocol" +
".EmptyMessage\032\027.protocol.NumberMessage\"\000" +
"\022T\n\030GetTransactionSignWeight\022\025.protocol." +
"Transaction\032\037.protocol.TransactionSignWe" +
"ight\"\000\022X\n\032GetTransactionApprovedList\022\025.p" +
"rotocol.Transaction\032!.protocol.Transacti" +
"onApprovedList\"\000\022B\n\nGetAccount\022\037.protoco" +
"l.AccountAddressMessage\032\021.protocol.Accou" +
"nt\"\000\022A\n\016GetAccountById\022\032.protocol.Accoun" +
"tIdMessage\032\021.protocol.Account\"\000\022O\n\rGetAc" +
"countNet\022\037.protocol.AccountAddressMessag" +
"e\032\033.protocol.AccountNetMessage\"\000\022Y\n\022GetA" +
"ccountResource\022\037.protocol.AccountAddress" +
"Message\032 .protocol.AccountResourceMessag" +
"e\"\000\022U\n\026GetAssetIssueByAccount\022\037.protocol" +
".AccountAddressMessage\032\030.protocol.AssetI" +
"ssueList\"\000\022M\n\023GetAssetIssueByName\022\026.prot" +
"ocol.BytesMessage\032\034.protocol.AssetIssueC" +
"ontract\"\000\022M\n\027GetAssetIssueListByName\022\026.p" +
"rotocol.BytesMessage\032\030.protocol.AssetIss" +
"ueList\"\000\022K\n\021GetAssetIssueById\022\026.protocol" +
".BytesMessage\032\034.protocol.AssetIssueContr" +
"act\"\000\022G\n\021GetAssetIssueList\022\026.protocol.Em" +
"ptyMessage\032\030.protocol.AssetIssueList\"\000\022T" +
"\n\032GetPaginatedAssetIssueList\022\032.protocol." +
"PaginatedMessage\032\030.protocol.AssetIssueLi" +
"st\"\000\0228\n\013GetNowBlock\022\026.protocol.EmptyMess" +
"age\032\017.protocol.Block\"\000\022B\n\014GetNowBlock2\022\026" +
".protocol.EmptyMessage\032\030.protocol.BlockE" +
"xtention\"\000\022;\n\rGetBlockByNum\022\027.protocol.N" +
"umberMessage\032\017.protocol.Block\"\000\022E\n\016GetBl" +
"ockByNum2\022\027.protocol.NumberMessage\032\030.pro" +
"tocol.BlockExtention\"\000\0229\n\014GetBlockById\022\026" +
".protocol.BytesMessage\032\017.protocol.Block\"" +
"\000\022B\n\023GetBlockByLimitNext\022\024.protocol.Bloc" +
"kLimit\032\023.protocol.BlockList\"\000\022L\n\024GetBloc" +
"kByLimitNext2\022\024.protocol.BlockLimit\032\034.pr" +
"otocol.BlockListExtention\"\000\022E\n\023GetBlockB" +
"yLatestNum\022\027.protocol.NumberMessage\032\023.pr" +
"otocol.BlockList\"\000\022O\n\024GetBlockByLatestNu" +
"m2\022\027.protocol.NumberMessage\032\034.protocol.B" +
"lockListExtention\"\000\022S\n\035GetTransactionCou" +
"ntByBlockNum\022\027.protocol.NumberMessage\032\027." +
"protocol.NumberMessage\"\000\022E\n\022GetTransacti" +
"onById\022\026.protocol.BytesMessage\032\025.protoco" +
"l.Transaction\"\000\022M\n\026GetTransactionInfoByI" +
"d\022\026.protocol.BytesMessage\032\031.protocol.Tra" +
"nsactionInfo\"\000\022X\n\034GetTransactionInfoByBl" +
"ockNum\022\027.protocol.NumberMessage\032\035.protoc" +
"ol.TransactionInfoList\"\000\022@\n\013GetContract\022" +
"\026.protocol.BytesMessage\032\027.protocol.Smart" +
"Contract\"\000\022O\n\017GetContractInfo\022\026.protocol" +
".BytesMessage\032\".protocol.SmartContractDa" +
"taWrapper\"\000\022@\n\rListWitnesses\022\026.protocol." +
"EmptyMessage\032\025.protocol.WitnessList\"\000\022E\n" +
"\020GetBrokerageInfo\022\026.protocol.BytesMessag" +
"e\032\027.protocol.NumberMessage\"\000\022B\n\rGetRewar" +
"dInfo\022\026.protocol.BytesMessage\032\027.protocol" +
".NumberMessage\"\000\022]\n\024GetDelegatedResource" +
"\022\".protocol.DelegatedResourceMessage\032\037.p" +
"rotocol.DelegatedResourceList\"\000\022e\n GetDe" +
"legatedResourceAccountIndex\022\026.protocol.B" +
"ytesMessage\032\'.protocol.DelegatedResource" +
"AccountIndex\"\000\022A\n\rListProposals\022\026.protoc" +
"ol.EmptyMessage\032\026.protocol.ProposalList\"" +
"\000\022?\n\017GetProposalById\022\026.protocol.BytesMes" +
"sage\032\022.protocol.Proposal\"\000\022P\n\030GetPaginat" +
"edProposalList\022\032.protocol.PaginatedMessa" +
"ge\032\026.protocol.ProposalList\"\000\022A\n\rListExch" +
"anges\022\026.protocol.EmptyMessage\032\026.protocol" +
".ExchangeList\"\000\022?\n\017GetExchangeById\022\026.pro" +
"tocol.BytesMessage\032\022.protocol.Exchange\"\000" +
"\022P\n\030GetPaginatedExchangeList\022\032.protocol." +
"PaginatedMessage\032\026.protocol.ExchangeList" +
"\"\000\022a\n\033ScanShieldedVRC20NotesByIvk\022#.prot" +
"ocol.IvkDecryptVRC20Parameters\032\033.protoco" +
"l.DecryptNotesVRC20\"\000\022a\n\033ScanShieldedVRC" +
"20NotesByOvk\022#.protocol.OvkDecryptVRC20P" +
"arameters\032\033.protocol.DecryptNotesVRC20\"\000" +
"\022\\\n IsShieldedVRC20ContractNoteSpent\022\033.p" +
"rotocol.NfVRC20Parameters\032\031.protocol.Nul" +
"lifierResult\"\000\022N\n\027GetMarketOrderByAccoun" +
"t\022\026.protocol.BytesMessage\032\031.protocol.Mar" +
"ketOrderList\"\000\022E\n\022GetMarketOrderById\022\026.p" +
"rotocol.BytesMessage\032\025.protocol.MarketOr" +
"der\"\000\022N\n\024GetMarketPriceByPair\022\031.protocol" +
".MarketOrderPair\032\031.protocol.MarketPriceL" +
"ist\"\000\022R\n\030GetMarketOrderListByPair\022\031.prot" +
"ocol.MarketOrderPair\032\031.protocol.MarketOr" +
"derList\"\000\022L\n\021GetMarketPairList\022\026.protoco" +
"l.EmptyMessage\032\035.protocol.MarketOrderPai" +
"rList\"\000\022H\n\022GetTransactionSign\022\031.protocol" +
".TransactionSign\032\025.protocol.Transaction\"" +
"\000\022R\n\023GetTransactionSign2\022\031.protocol.Tran" +
"sactionSign\032\036.protocol.TransactionExtent" +
"ion\"\000\022Y\n\021EasyTransferAsset\022\".protocol.Ea" +
"syTransferAssetMessage\032\036.protocol.EasyTr" +
"ansferResponse\"\000\022k\n\032EasyTransferAssetByP" +
"rivate\022+.protocol.EasyTransferAssetByPri" +
"vateMessage\032\036.protocol.EasyTransferRespo" +
"nse\"\000\022O\n\014EasyTransfer\022\035.protocol.EasyTra" +
"nsferMessage\032\036.protocol.EasyTransferResp" +
"onse\"\000\022a\n\025EasyTransferByPrivate\022&.protoc" +
"ol.EasyTransferByPrivateMessage\032\036.protoc" +
"ol.EasyTransferResponse\"\000\022A\n\rCreateAddre" +
"ss\022\026.protocol.BytesMessage\032\026.protocol.By" +
"tesMessage\"\000\022N\n\017GenerateAddress\022\026.protoc" +
"ol.EmptyMessage\032!.protocol.AddressPrKeyP" +
"airMessage\"\000\022F\n\007AddSign\022\031.protocol.Trans" +
"actionSign\032\036.protocol.TransactionExtenti" +
"on\"\000\022B\n\016GetSpendingKey\022\026.protocol.EmptyM" +
"essage\032\026.protocol.BytesMessage\"\000\022X\n\026GetE" +
"xpandedSpendingKey\022\026.protocol.BytesMessa" +
"ge\032$.protocol.ExpandedSpendingKeyMessage" +
"\"\000\022@\n\014GetAkFromAsk\022\026.protocol.BytesMessa" +
"ge\032\026.protocol.BytesMessage\"\000\022@\n\014GetNkFro" +
"mNsk\022\026.protocol.BytesMessage\032\026.protocol." +
"BytesMessage\"\000\022[\n\025GetIncomingViewingKey\022" +
"\033.protocol.ViewingKeyMessage\032#.protocol." +
"IncomingViewingKeyMessage\"\000\022H\n\016GetDivers" +
"ifier\022\026.protocol.EmptyMessage\032\034.protocol" +
".DiversifierMessage\"\000\022i\n\024GetZenPaymentAd" +
"dress\022..protocol.IncomingViewingKeyDiver" +
"sifierMessage\032\037.protocol.PaymentAddressM" +
"essage\"\000\022P\n\025GetNewShieldedAddress\022\026.prot" +
"ocol.EmptyMessage\032\035.protocol.ShieldedAdd" +
"ressInfo\"\000\022:\n\006GetRcm\022\026.protocol.EmptyMes" +
"sage\032\026.protocol.BytesMessage\"\000\022q\n Create" +
"ShieldedContractParameters\022(.protocol.Pr" +
"ivateShieldedVRC20Parameters\032!.protocol." +
"ShieldedVRC20Parameters\"\000\022\205\001\n*CreateShie" +
"ldedContractParametersWithoutAsk\0222.proto" +
"col.PrivateShieldedVRC20ParametersWithou" +
"tAsk\032!.protocol.ShieldedVRC20Parameters\"" +
"\000\022u\n\'GetTriggerInputForShieldedVRC20Cont" +
"ract\0220.protocol.ShieldedVRC20TriggerCont" +
"ractParameters\032\026.protocol.BytesMessage\"\000" +
"2\243\002\n\016WalletSolidity\022B\n\nGetAccount\022\037.prot" +
"ocol.AccountAddressMessage\032\021.protocol.Ac" +
"count\"\000\022B\n\014GetNowBlock2\022\026.protocol.Empty" +
"Message\032\030.protocol.BlockExtention\"\000\022E\n\022G" +
"etTransactionById\022\026.protocol.BytesMessag" +
"e\032\025.protocol.Transaction\"\000\022B\n\rGetRewardI" +
"nfo\022\026.protocol.BytesMessage\032\027.protocol.N" +
"umberMessage\"\000B$\n\031org.vision.visionjsdk." +
"apiB\007GrpcAPIb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.vision.visionjsdk.proto.Common.getDescriptor(),
org.vision.visionjsdk.proto.Chain.getDescriptor(),
org.vision.visionjsdk.proto.Contract.getDescriptor(),
org.vision.visionjsdk.proto.Response.getDescriptor(),
});
internal_static_protocol_EmptyMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protocol_EmptyMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_EmptyMessage_descriptor,
new java.lang.String[] { });
internal_static_protocol_NumberMessage_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protocol_NumberMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_NumberMessage_descriptor,
new java.lang.String[] { "Num", });
internal_static_protocol_BytesMessage_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_protocol_BytesMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_BytesMessage_descriptor,
new java.lang.String[] { "Value", });
internal_static_protocol_BlockLimit_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_protocol_BlockLimit_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_BlockLimit_descriptor,
new java.lang.String[] { "StartNum", "EndNum", });
internal_static_protocol_AccountAddressMessage_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_protocol_AccountAddressMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_AccountAddressMessage_descriptor,
new java.lang.String[] { "Address", });
internal_static_protocol_AccountIdMessage_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_protocol_AccountIdMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_AccountIdMessage_descriptor,
new java.lang.String[] { "Id", });
internal_static_protocol_PaginatedMessage_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_protocol_PaginatedMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_PaginatedMessage_descriptor,
new java.lang.String[] { "Offset", "Limit", });
internal_static_protocol_EasyTransferMessage_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_protocol_EasyTransferMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_EasyTransferMessage_descriptor,
new java.lang.String[] { "PassPhrase", "ToAddress", "Amount", });
internal_static_protocol_EasyTransferAssetMessage_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_protocol_EasyTransferAssetMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_EasyTransferAssetMessage_descriptor,
new java.lang.String[] { "PassPhrase", "ToAddress", "AssetId", "Amount", });
internal_static_protocol_EasyTransferByPrivateMessage_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_protocol_EasyTransferByPrivateMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_EasyTransferByPrivateMessage_descriptor,
new java.lang.String[] { "PrivateKey", "ToAddress", "Amount", });
internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_protocol_EasyTransferAssetByPrivateMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_EasyTransferAssetByPrivateMessage_descriptor,
new java.lang.String[] { "PrivateKey", "ToAddress", "AssetId", "Amount", });
internal_static_protocol_ViewingKeyMessage_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_protocol_ViewingKeyMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ViewingKeyMessage_descriptor,
new java.lang.String[] { "Ak", "Nk", });
internal_static_protocol_ShieldedAddressInfo_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_protocol_ShieldedAddressInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ShieldedAddressInfo_descriptor,
new java.lang.String[] { "Sk", "Ask", "Nsk", "Ovk", "Ak", "Nk", "Ivk", "D", "PkD", "PaymentAddress", });
internal_static_protocol_PaymentAddressMessage_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_protocol_PaymentAddressMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_PaymentAddressMessage_descriptor,
new java.lang.String[] { "D", "PkD", "PaymentAddress", });
internal_static_protocol_DiversifierMessage_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_protocol_DiversifierMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_DiversifierMessage_descriptor,
new java.lang.String[] { "D", });
internal_static_protocol_ExpandedSpendingKeyMessage_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_protocol_ExpandedSpendingKeyMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ExpandedSpendingKeyMessage_descriptor,
new java.lang.String[] { "Ask", "Nsk", "Ovk", });
internal_static_protocol_IncomingViewingKeyMessage_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_protocol_IncomingViewingKeyMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_IncomingViewingKeyMessage_descriptor,
new java.lang.String[] { "Ivk", });
internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_protocol_IncomingViewingKeyDiversifierMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_IncomingViewingKeyDiversifierMessage_descriptor,
new java.lang.String[] { "Ivk", "D", });
internal_static_protocol_ReceiveNote_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_protocol_ReceiveNote_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ReceiveNote_descriptor,
new java.lang.String[] { "Note", });
internal_static_protocol_SpendNoteVRC20_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_protocol_SpendNoteVRC20_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SpendNoteVRC20_descriptor,
new java.lang.String[] { "Note", "Alpha", "Root", "Path", "Pos", });
internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_protocol_PrivateShieldedVRC20Parameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_PrivateShieldedVRC20Parameters_descriptor,
new java.lang.String[] { "Ask", "Nsk", "Ovk", "FromAmount", "ShieldedSpends", "ShieldedReceives", "TransparentToAddress", "ToAmount", "ShieldedVRC20ContractAddress", });
internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_PrivateShieldedVRC20ParametersWithoutAsk_descriptor,
new java.lang.String[] { "Ak", "Nsk", "Ovk", "FromAmount", "ShieldedSpends", "ShieldedReceives", "TransparentToAddress", "ToAmount", "ShieldedVRC20ContractAddress", });
internal_static_protocol_SpendDescription_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_protocol_SpendDescription_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SpendDescription_descriptor,
new java.lang.String[] { "ValueCommitment", "Anchor", "Nullifier", "Rk", "Zkproof", "SpendAuthoritySignature", });
internal_static_protocol_ReceiveDescription_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_protocol_ReceiveDescription_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ReceiveDescription_descriptor,
new java.lang.String[] { "ValueCommitment", "NoteCommitment", "Epk", "CEnc", "COut", "Zkproof", });
internal_static_protocol_ShieldedVRC20Parameters_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_protocol_ShieldedVRC20Parameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ShieldedVRC20Parameters_descriptor,
new java.lang.String[] { "SpendDescription", "ReceiveDescription", "BindingSignature", "MessageHash", "TriggerContractInput", "ParameterType", });
internal_static_protocol_IvkDecryptVRC20Parameters_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_protocol_IvkDecryptVRC20Parameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_IvkDecryptVRC20Parameters_descriptor,
new java.lang.String[] { "StartBlockIndex", "EndBlockIndex", "ShieldedVRC20ContractAddress", "Ivk", "Ak", "Nk", "Events", });
internal_static_protocol_OvkDecryptVRC20Parameters_descriptor =
getDescriptor().getMessageTypes().get(26);
internal_static_protocol_OvkDecryptVRC20Parameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_OvkDecryptVRC20Parameters_descriptor,
new java.lang.String[] { "StartBlockIndex", "EndBlockIndex", "Ovk", "ShieldedVRC20ContractAddress", "Events", });
internal_static_protocol_NfVRC20Parameters_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_protocol_NfVRC20Parameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_NfVRC20Parameters_descriptor,
new java.lang.String[] { "Note", "Ak", "Nk", "Position", "ShieldedVRC20ContractAddress", });
internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor =
getDescriptor().getMessageTypes().get(28);
internal_static_protocol_ShieldedVRC20TriggerContractParameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_ShieldedVRC20TriggerContractParameters_descriptor,
new java.lang.String[] { "ShieldedVRC20Parameters", "SpendAuthoritySignature", "Amount", "TransparentToAddress", });
org.vision.visionjsdk.proto.Common.getDescriptor();
org.vision.visionjsdk.proto.Chain.getDescriptor();
org.vision.visionjsdk.proto.Contract.getDescriptor();
org.vision.visionjsdk.proto.Response.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}