com.figure.Attribute.api.proto.AttributeServiceOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-proto Show documentation
Show all versions of api-proto Show documentation
gRPC client code to interact with Figures off chain Provenance data
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: attribute-service.proto
package com.figure.Attribute.api.proto;
public final class AttributeServiceOuterClass {
private AttributeServiceOuterClass() {}
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 AttributeStreamRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:api.AttributeStreamRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string attribute_names = 1;
* @return A list containing the attributeNames.
*/
java.util.List
getAttributeNamesList();
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
int getAttributeNamesCount();
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
java.lang.String getAttributeNames(int index);
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
com.google.protobuf.ByteString
getAttributeNamesBytes(int index);
/**
* int64 start_height = 2;
* @return The startHeight.
*/
long getStartHeight();
/**
* int64 end_height = 3;
* @return The endHeight.
*/
long getEndHeight();
}
/**
* Protobuf type {@code api.AttributeStreamRequest}
*/
public static final class AttributeStreamRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:api.AttributeStreamRequest)
AttributeStreamRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttributeStreamRequest.newBuilder() to construct.
private AttributeStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttributeStreamRequest() {
attributeNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttributeStreamRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.Builder.class);
}
public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList attributeNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string attribute_names = 1;
* @return A list containing the attributeNames.
*/
public com.google.protobuf.ProtocolStringList
getAttributeNamesList() {
return attributeNames_;
}
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
public int getAttributeNamesCount() {
return attributeNames_.size();
}
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
public java.lang.String getAttributeNames(int index) {
return attributeNames_.get(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
public com.google.protobuf.ByteString
getAttributeNamesBytes(int index) {
return attributeNames_.getByteString(index);
}
public static final int START_HEIGHT_FIELD_NUMBER = 2;
private long startHeight_ = 0L;
/**
* int64 start_height = 2;
* @return The startHeight.
*/
@java.lang.Override
public long getStartHeight() {
return startHeight_;
}
public static final int END_HEIGHT_FIELD_NUMBER = 3;
private long endHeight_ = 0L;
/**
* int64 end_height = 3;
* @return The endHeight.
*/
@java.lang.Override
public long getEndHeight() {
return endHeight_;
}
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 < attributeNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i));
}
if (startHeight_ != 0L) {
output.writeInt64(2, startHeight_);
}
if (endHeight_ != 0L) {
output.writeInt64(3, endHeight_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < attributeNames_.size(); i++) {
dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i));
}
size += dataSize;
size += 1 * getAttributeNamesList().size();
}
if (startHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, startHeight_);
}
if (endHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, endHeight_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest)) {
return super.equals(obj);
}
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest other = (com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest) obj;
if (!getAttributeNamesList()
.equals(other.getAttributeNamesList())) return false;
if (getStartHeight()
!= other.getStartHeight()) return false;
if (getEndHeight()
!= other.getEndHeight()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAttributeNamesCount() > 0) {
hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getAttributeNamesList().hashCode();
}
hash = (37 * hash) + START_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartHeight());
hash = (37 * hash) + END_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndHeight());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest 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(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest 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 api.AttributeStreamRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:api.AttributeStreamRequest)
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.Builder.class);
}
// Construct using com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
attributeNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
startHeight_ = 0L;
endHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeStreamRequest_descriptor;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest getDefaultInstanceForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.getDefaultInstance();
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest build() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest buildPartial() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest result = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
attributeNames_.makeImmutable();
result.attributeNames_ = attributeNames_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startHeight_ = startHeight_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endHeight_ = endHeight_;
}
}
@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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest) {
return mergeFrom((com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest other) {
if (other == com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest.getDefaultInstance()) return this;
if (!other.attributeNames_.isEmpty()) {
if (attributeNames_.isEmpty()) {
attributeNames_ = other.attributeNames_;
bitField0_ |= 0x00000001;
} else {
ensureAttributeNamesIsMutable();
attributeNames_.addAll(other.attributeNames_);
}
onChanged();
}
if (other.getStartHeight() != 0L) {
setStartHeight(other.getStartHeight());
}
if (other.getEndHeight() != 0L) {
setEndHeight(other.getEndHeight());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureAttributeNamesIsMutable();
attributeNames_.add(s);
break;
} // case 10
case 16: {
startHeight_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
endHeight_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList attributeNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAttributeNamesIsMutable() {
if (!attributeNames_.isModifiable()) {
attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string attribute_names = 1;
* @return A list containing the attributeNames.
*/
public com.google.protobuf.ProtocolStringList
getAttributeNamesList() {
attributeNames_.makeImmutable();
return attributeNames_;
}
/**
* repeated string attribute_names = 1;
* @return The count of attributeNames.
*/
public int getAttributeNamesCount() {
return attributeNames_.size();
}
/**
* repeated string attribute_names = 1;
* @param index The index of the element to return.
* @return The attributeNames at the given index.
*/
public java.lang.String getAttributeNames(int index) {
return attributeNames_.get(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index of the value to return.
* @return The bytes of the attributeNames at the given index.
*/
public com.google.protobuf.ByteString
getAttributeNamesBytes(int index) {
return attributeNames_.getByteString(index);
}
/**
* repeated string attribute_names = 1;
* @param index The index to set the value at.
* @param value The attributeNames to set.
* @return This builder for chaining.
*/
public Builder setAttributeNames(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAttributeNamesIsMutable();
attributeNames_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @param value The attributeNames to add.
* @return This builder for chaining.
*/
public Builder addAttributeNames(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAttributeNamesIsMutable();
attributeNames_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @param values The attributeNames to add.
* @return This builder for chaining.
*/
public Builder addAllAttributeNames(
java.lang.Iterable values) {
ensureAttributeNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributeNames_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @return This builder for chaining.
*/
public Builder clearAttributeNames() {
attributeNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string attribute_names = 1;
* @param value The bytes of the attributeNames to add.
* @return This builder for chaining.
*/
public Builder addAttributeNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureAttributeNamesIsMutable();
attributeNames_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long startHeight_ ;
/**
* int64 start_height = 2;
* @return The startHeight.
*/
@java.lang.Override
public long getStartHeight() {
return startHeight_;
}
/**
* int64 start_height = 2;
* @param value The startHeight to set.
* @return This builder for chaining.
*/
public Builder setStartHeight(long value) {
startHeight_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 start_height = 2;
* @return This builder for chaining.
*/
public Builder clearStartHeight() {
bitField0_ = (bitField0_ & ~0x00000002);
startHeight_ = 0L;
onChanged();
return this;
}
private long endHeight_ ;
/**
* int64 end_height = 3;
* @return The endHeight.
*/
@java.lang.Override
public long getEndHeight() {
return endHeight_;
}
/**
* int64 end_height = 3;
* @param value The endHeight to set.
* @return This builder for chaining.
*/
public Builder setEndHeight(long value) {
endHeight_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 end_height = 3;
* @return This builder for chaining.
*/
public Builder clearEndHeight() {
bitField0_ = (bitField0_ & ~0x00000004);
endHeight_ = 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:api.AttributeStreamRequest)
}
// @@protoc_insertion_point(class_scope:api.AttributeStreamRequest)
private static final com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest();
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttributeStreamRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeStreamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttributesForAddressRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:api.AttributesForAddressRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
}
/**
* Protobuf type {@code api.AttributesForAddressRequest}
*/
public static final class AttributesForAddressRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:api.AttributesForAddressRequest)
AttributesForAddressRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttributesForAddressRequest.newBuilder() to construct.
private AttributesForAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttributesForAddressRequest() {
address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttributesForAddressRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributesForAddressRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributesForAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest)) {
return super.equals(obj);
}
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest other = (com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest 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(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest 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 api.AttributesForAddressRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:api.AttributesForAddressRequest)
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributesForAddressRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributesForAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.Builder.class);
}
// Construct using com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributesForAddressRequest_descriptor;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest getDefaultInstanceForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.getDefaultInstance();
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest build() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest buildPartial() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest result = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
}
@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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest) {
return mergeFrom((com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest other) {
if (other == com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
address_ = value;
bitField0_ |= 0x00000001;
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:api.AttributesForAddressRequest)
}
// @@protoc_insertion_point(class_scope:api.AttributesForAddressRequest)
private static final com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest();
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttributesForAddressRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributesForAddressRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttributeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:api.AttributeResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .api.AttributeState attribute = 1;
* @return Whether the attribute field is set.
*/
boolean hasAttribute();
/**
* .api.AttributeState attribute = 1;
* @return The attribute.
*/
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState getAttribute();
/**
* .api.AttributeState attribute = 1;
*/
com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder getAttributeOrBuilder();
}
/**
* Protobuf type {@code api.AttributeResponse}
*/
public static final class AttributeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:api.AttributeResponse)
AttributeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttributeResponse.newBuilder() to construct.
private AttributeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttributeResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttributeResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.Builder.class);
}
private int bitField0_;
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
private com.figure.block.api.proto.AttributeStateOuterClass.AttributeState attribute_;
/**
* .api.AttributeState attribute = 1;
* @return Whether the attribute field is set.
*/
@java.lang.Override
public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .api.AttributeState attribute = 1;
* @return The attribute.
*/
@java.lang.Override
public com.figure.block.api.proto.AttributeStateOuterClass.AttributeState getAttribute() {
return attribute_ == null ? com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.getDefaultInstance() : attribute_;
}
/**
* .api.AttributeState attribute = 1;
*/
@java.lang.Override
public com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder getAttributeOrBuilder() {
return attribute_ == null ? com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.getDefaultInstance() : attribute_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAttribute());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAttribute());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse)) {
return super.equals(obj);
}
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse other = (com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse) obj;
if (hasAttribute() != other.hasAttribute()) return false;
if (hasAttribute()) {
if (!getAttribute()
.equals(other.getAttribute())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAttribute()) {
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse 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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse 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(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse 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 api.AttributeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:api.AttributeResponse)
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.class, com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.Builder.class);
}
// Construct using com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
attribute_ = null;
if (attributeBuilder_ != null) {
attributeBuilder_.dispose();
attributeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.internal_static_api_AttributeResponse_descriptor;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse getDefaultInstanceForType() {
return com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.getDefaultInstance();
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse build() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse buildPartial() {
com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse result = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.attribute_ = attributeBuilder_ == null
? attribute_
: attributeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse) {
return mergeFrom((com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse other) {
if (other == com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse.getDefaultInstance()) return this;
if (other.hasAttribute()) {
mergeAttribute(other.getAttribute());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAttributeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.figure.block.api.proto.AttributeStateOuterClass.AttributeState attribute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState, com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder, com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder> attributeBuilder_;
/**
* .api.AttributeState attribute = 1;
* @return Whether the attribute field is set.
*/
public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .api.AttributeState attribute = 1;
* @return The attribute.
*/
public com.figure.block.api.proto.AttributeStateOuterClass.AttributeState getAttribute() {
if (attributeBuilder_ == null) {
return attribute_ == null ? com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
* .api.AttributeState attribute = 1;
*/
public Builder setAttribute(com.figure.block.api.proto.AttributeStateOuterClass.AttributeState value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attribute_ = value;
} else {
attributeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .api.AttributeState attribute = 1;
*/
public Builder setAttribute(
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
} else {
attributeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .api.AttributeState attribute = 1;
*/
public Builder mergeAttribute(com.figure.block.api.proto.AttributeStateOuterClass.AttributeState value) {
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
attribute_ != null &&
attribute_ != com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.getDefaultInstance()) {
getAttributeBuilder().mergeFrom(value);
} else {
attribute_ = value;
}
} else {
attributeBuilder_.mergeFrom(value);
}
if (attribute_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .api.AttributeState attribute = 1;
*/
public Builder clearAttribute() {
bitField0_ = (bitField0_ & ~0x00000001);
attribute_ = null;
if (attributeBuilder_ != null) {
attributeBuilder_.dispose();
attributeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .api.AttributeState attribute = 1;
*/
public com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder getAttributeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
* .api.AttributeState attribute = 1;
*/
public com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.getDefaultInstance() : attribute_;
}
}
/**
* .api.AttributeState attribute = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState, com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder, com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.figure.block.api.proto.AttributeStateOuterClass.AttributeState, com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder, com.figure.block.api.proto.AttributeStateOuterClass.AttributeStateOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
attribute_ = null;
}
return attributeBuilder_;
}
@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:api.AttributeResponse)
}
// @@protoc_insertion_point(class_scope:api.AttributeResponse)
private static final com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse();
}
public static com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttributeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.figure.Attribute.api.proto.AttributeServiceOuterClass.AttributeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_api_AttributeStreamRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_api_AttributeStreamRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_api_AttributesForAddressRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_api_AttributesForAddressRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_api_AttributeResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_api_AttributeResponse_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\027attribute-service.proto\022\003api\032\025attribut" +
"e-state.proto\032\034google/api/annotations.pr" +
"oto\"[\n\026AttributeStreamRequest\022\027\n\017attribu" +
"te_names\030\001 \003(\t\022\024\n\014start_height\030\002 \001(\003\022\022\n\n" +
"end_height\030\003 \001(\003\".\n\033AttributesForAddress" +
"Request\022\017\n\007address\030\001 \001(\t\";\n\021AttributeRes" +
"ponse\022&\n\tattribute\030\001 \001(\0132\023.api.Attribute" +
"State2\361\001\n\020AttributeService\022f\n\025LatestAttr" +
"ibuteStream\022\033.api.AttributeStreamRequest" +
"\032\026.api.AttributeResponse\"\026\202\323\344\223\002\020\"\016/v1/At" +
"tributes0\001\022u\n\027GetAttributesForAddress\022 ." +
"api.AttributesForAddressRequest\032\026.api.At" +
"tributeResponse\" \202\323\344\223\002\032\"\030/v1/attributes/" +
"{address}BX\n\036com.figure.Attribute.api.pr" +
"otoZ6github.com/FigureTechnologies/prove" +
"nance-Attribute-apib\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.figure.block.api.proto.AttributeStateOuterClass.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
});
internal_static_api_AttributeStreamRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_api_AttributeStreamRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_api_AttributeStreamRequest_descriptor,
new java.lang.String[] { "AttributeNames", "StartHeight", "EndHeight", });
internal_static_api_AttributesForAddressRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_api_AttributesForAddressRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_api_AttributesForAddressRequest_descriptor,
new java.lang.String[] { "Address", });
internal_static_api_AttributeResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_api_AttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_api_AttributeResponse_descriptor,
new java.lang.String[] { "Attribute", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.figure.block.api.proto.AttributeStateOuterClass.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}