tech.figure.objectstore.gateway.GatewayOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
A library for interacting with the Figure Tech Object Store Gateway
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tech/figure/objectstore/gateway/gateway.proto
package tech.figure.objectstore.gateway;
public final class GatewayOuterClass {
private GatewayOuterClass() {}
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 FetchObjectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.FetchObjectRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string scope_address = 1;
* @return The scopeAddress.
*/
java.lang.String getScopeAddress();
/**
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
com.google.protobuf.ByteString
getScopeAddressBytes();
/**
*
* optional
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
java.lang.String getGranterAddress();
/**
*
* optional
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
com.google.protobuf.ByteString
getGranterAddressBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.FetchObjectRequest}
*/
public static final class FetchObjectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.FetchObjectRequest)
FetchObjectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchObjectRequest.newBuilder() to construct.
private FetchObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchObjectRequest() {
scopeAddress_ = "";
granterAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchObjectRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.Builder.class);
}
public static final int SCOPE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object scopeAddress_ = "";
/**
* string scope_address = 1;
* @return The scopeAddress.
*/
@java.lang.Override
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
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();
scopeAddress_ = s;
return s;
}
}
/**
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTER_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object granterAddress_ = "";
/**
*
* optional
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
@java.lang.Override
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
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();
granterAddress_ = s;
return s;
}
}
/**
*
* optional
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = 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(scopeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granterAddress_);
}
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(scopeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, granterAddress_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest) obj;
if (!getScopeAddress()
.equals(other.getScopeAddress())) return false;
if (!getGranterAddress()
.equals(other.getGranterAddress())) 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) + SCOPE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getScopeAddress().hashCode();
hash = (37 * hash) + GRANTER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranterAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest 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 tech.figure.objectstore.gateway.FetchObjectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.FetchObjectRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scopeAddress_ = "";
granterAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scopeAddress_ = scopeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.granterAddress_ = granterAddress_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.getDefaultInstance()) return this;
if (!other.getScopeAddress().isEmpty()) {
scopeAddress_ = other.scopeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGranterAddress().isEmpty()) {
granterAddress_ = other.granterAddress_;
bitField0_ |= 0x00000002;
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: {
scopeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
granterAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 scopeAddress_ = "";
/**
* string scope_address = 1;
* @return The scopeAddress.
*/
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scopeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string scope_address = 1;
* @param value The scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string scope_address = 1;
* @return This builder for chaining.
*/
public Builder clearScopeAddress() {
scopeAddress_ = getDefaultInstance().getScopeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string scope_address = 1;
* @param value The bytes for scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object granterAddress_ = "";
/**
*
* optional
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granterAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional
*
*
* string granter_address = 2;
* @param value The granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granterAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* optional
*
*
* string granter_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranterAddress() {
granterAddress_ = getDefaultInstance().getGranterAddress();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* optional
*
*
* string granter_address = 2;
* @param value The bytes for granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granterAddress_ = value;
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.FetchObjectRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.FetchObjectRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchObjectResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.FetchObjectResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string scope_id = 1;
* @return The scopeId.
*/
java.lang.String getScopeId();
/**
* string scope_id = 1;
* @return The bytes for scopeId.
*/
com.google.protobuf.ByteString
getScopeIdBytes();
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
java.util.List
getRecordsList();
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.Record getRecords(int index);
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
int getRecordsCount();
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder>
getRecordsOrBuilderList();
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder getRecordsOrBuilder(
int index);
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.FetchObjectResponse}
*/
public static final class FetchObjectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.FetchObjectResponse)
FetchObjectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchObjectResponse.newBuilder() to construct.
private FetchObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchObjectResponse() {
scopeId_ = "";
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchObjectResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.Builder.class);
}
public static final int SCOPE_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object scopeId_ = "";
/**
* string scope_id = 1;
* @return The scopeId.
*/
@java.lang.Override
public java.lang.String getScopeId() {
java.lang.Object ref = scopeId_;
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();
scopeId_ = s;
return s;
}
}
/**
* string scope_id = 1;
* @return The bytes for scopeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeIdBytes() {
java.lang.Object ref = scopeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RECORDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List records_;
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
@java.lang.Override
public java.util.List getRecordsList() {
return records_;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
@java.lang.Override
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
@java.lang.Override
public int getRecordsCount() {
return records_.size();
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.Record getRecords(int index) {
return records_.get(index);
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder getRecordsOrBuilder(
int index) {
return records_.get(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeId_);
}
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(2, records_.get(i));
}
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(scopeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeId_);
}
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, records_.get(i));
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse) obj;
if (!getScopeId()
.equals(other.getScopeId())) return false;
if (!getRecordsList()
.equals(other.getRecordsList())) 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) + SCOPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getScopeId().hashCode();
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse 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 tech.figure.objectstore.gateway.FetchObjectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.FetchObjectResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scopeId_ = "";
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
} else {
records_ = null;
recordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse result) {
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scopeId_ = scopeId_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.getDefaultInstance()) return this;
if (!other.getScopeId().isEmpty()) {
scopeId_ = other.scopeId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000002);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
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: {
scopeId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
tech.figure.objectstore.gateway.GatewayOuterClass.Record m =
input.readMessage(
tech.figure.objectstore.gateway.GatewayOuterClass.Record.parser(),
extensionRegistry);
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(m);
} else {
recordsBuilder_.addMessage(m);
}
break;
} // case 18
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 scopeId_ = "";
/**
* string scope_id = 1;
* @return The scopeId.
*/
public java.lang.String getScopeId() {
java.lang.Object ref = scopeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scopeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string scope_id = 1;
* @return The bytes for scopeId.
*/
public com.google.protobuf.ByteString
getScopeIdBytes() {
java.lang.Object ref = scopeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string scope_id = 1;
* @param value The scopeId to set.
* @return This builder for chaining.
*/
public Builder setScopeId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scopeId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string scope_id = 1;
* @return This builder for chaining.
*/
public Builder clearScopeId() {
scopeId_ = getDefaultInstance().getScopeId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string scope_id = 1;
* @param value The bytes for scopeId to set.
* @return This builder for chaining.
*/
public Builder setScopeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scopeId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
records_ = new java.util.ArrayList(records_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.Record, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder> recordsBuilder_;
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.Record getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder setRecords(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.Record value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder setRecords(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder addRecords(tech.figure.objectstore.gateway.GatewayOuterClass.Record value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder addRecords(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.Record value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder addRecords(
tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder addRecords(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder addAllRecords(
java.lang.Iterable extends tech.figure.objectstore.gateway.GatewayOuterClass.Record> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
tech.figure.objectstore.gateway.GatewayOuterClass.Record.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, tech.figure.objectstore.gateway.GatewayOuterClass.Record.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.Record records = 2;
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.Record, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.Record, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder>(
records_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
@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:tech.figure.objectstore.gateway.FetchObjectResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.FetchObjectResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutObjectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.PutObjectRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
boolean hasObject();
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject();
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder();
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
java.util.List
getAdditionalAudienceKeysList();
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
io.provenance.scope.proto.PK.PublicKey getAdditionalAudienceKeys(int index);
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
int getAdditionalAudienceKeysCount();
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
java.util.List extends io.provenance.scope.proto.PK.PublicKeyOrBuilder>
getAdditionalAudienceKeysOrBuilderList();
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
io.provenance.scope.proto.PK.PublicKeyOrBuilder getAdditionalAudienceKeysOrBuilder(
int index);
/**
* bool use_requester_key = 3;
* @return The useRequesterKey.
*/
boolean getUseRequesterKey();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.PutObjectRequest}
*/
public static final class PutObjectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.PutObjectRequest)
PutObjectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutObjectRequest.newBuilder() to construct.
private PutObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutObjectRequest() {
additionalAudienceKeys_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PutObjectRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.Builder.class);
}
public static final int OBJECT_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta object_;
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
@java.lang.Override
public boolean hasObject() {
return object_ != null;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject() {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder() {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
public static final int ADDITIONAL_AUDIENCE_KEYS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List additionalAudienceKeys_;
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
@java.lang.Override
public java.util.List getAdditionalAudienceKeysList() {
return additionalAudienceKeys_;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.proto.PK.PublicKeyOrBuilder>
getAdditionalAudienceKeysOrBuilderList() {
return additionalAudienceKeys_;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
@java.lang.Override
public int getAdditionalAudienceKeysCount() {
return additionalAudienceKeys_.size();
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
@java.lang.Override
public io.provenance.scope.proto.PK.PublicKey getAdditionalAudienceKeys(int index) {
return additionalAudienceKeys_.get(index);
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
@java.lang.Override
public io.provenance.scope.proto.PK.PublicKeyOrBuilder getAdditionalAudienceKeysOrBuilder(
int index) {
return additionalAudienceKeys_.get(index);
}
public static final int USE_REQUESTER_KEY_FIELD_NUMBER = 3;
private boolean useRequesterKey_ = false;
/**
* bool use_requester_key = 3;
* @return The useRequesterKey.
*/
@java.lang.Override
public boolean getUseRequesterKey() {
return useRequesterKey_;
}
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 (object_ != null) {
output.writeMessage(1, getObject());
}
for (int i = 0; i < additionalAudienceKeys_.size(); i++) {
output.writeMessage(2, additionalAudienceKeys_.get(i));
}
if (useRequesterKey_ != false) {
output.writeBool(3, useRequesterKey_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (object_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getObject());
}
for (int i = 0; i < additionalAudienceKeys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, additionalAudienceKeys_.get(i));
}
if (useRequesterKey_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, useRequesterKey_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest) obj;
if (hasObject() != other.hasObject()) return false;
if (hasObject()) {
if (!getObject()
.equals(other.getObject())) return false;
}
if (!getAdditionalAudienceKeysList()
.equals(other.getAdditionalAudienceKeysList())) return false;
if (getUseRequesterKey()
!= other.getUseRequesterKey()) 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 (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
if (getAdditionalAudienceKeysCount() > 0) {
hash = (37 * hash) + ADDITIONAL_AUDIENCE_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalAudienceKeysList().hashCode();
}
hash = (37 * hash) + USE_REQUESTER_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseRequesterKey());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest 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 tech.figure.objectstore.gateway.PutObjectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.PutObjectRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
if (additionalAudienceKeysBuilder_ == null) {
additionalAudienceKeys_ = java.util.Collections.emptyList();
} else {
additionalAudienceKeys_ = null;
additionalAudienceKeysBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
useRequesterKey_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest result) {
if (additionalAudienceKeysBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
additionalAudienceKeys_ = java.util.Collections.unmodifiableList(additionalAudienceKeys_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.additionalAudienceKeys_ = additionalAudienceKeys_;
} else {
result.additionalAudienceKeys_ = additionalAudienceKeysBuilder_.build();
}
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.object_ = objectBuilder_ == null
? object_
: objectBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.useRequesterKey_ = useRequesterKey_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.getDefaultInstance()) return this;
if (other.hasObject()) {
mergeObject(other.getObject());
}
if (additionalAudienceKeysBuilder_ == null) {
if (!other.additionalAudienceKeys_.isEmpty()) {
if (additionalAudienceKeys_.isEmpty()) {
additionalAudienceKeys_ = other.additionalAudienceKeys_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.addAll(other.additionalAudienceKeys_);
}
onChanged();
}
} else {
if (!other.additionalAudienceKeys_.isEmpty()) {
if (additionalAudienceKeysBuilder_.isEmpty()) {
additionalAudienceKeysBuilder_.dispose();
additionalAudienceKeysBuilder_ = null;
additionalAudienceKeys_ = other.additionalAudienceKeys_;
bitField0_ = (bitField0_ & ~0x00000002);
additionalAudienceKeysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionalAudienceKeysFieldBuilder() : null;
} else {
additionalAudienceKeysBuilder_.addAllMessages(other.additionalAudienceKeys_);
}
}
}
if (other.getUseRequesterKey() != false) {
setUseRequesterKey(other.getUseRequesterKey());
}
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(
getObjectFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
io.provenance.scope.proto.PK.PublicKey m =
input.readMessage(
io.provenance.scope.proto.PK.PublicKey.parser(),
extensionRegistry);
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.add(m);
} else {
additionalAudienceKeysBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
useRequesterKey_ = input.readBool();
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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta object_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder> objectBuilder_;
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
public boolean hasObject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject() {
if (objectBuilder_ == null) {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
} else {
return objectBuilder_.getMessage();
}
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder setObject(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
} else {
objectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder setObject(
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder builderForValue) {
if (objectBuilder_ == null) {
object_ = builderForValue.build();
} else {
objectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder mergeObject(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta value) {
if (objectBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
object_ != null &&
object_ != tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance()) {
getObjectBuilder().mergeFrom(value);
} else {
object_ = value;
}
} else {
objectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder clearObject() {
bitField0_ = (bitField0_ & ~0x00000001);
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder getObjectBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilder();
} else {
return object_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder>(
getObject(),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
private java.util.List additionalAudienceKeys_ =
java.util.Collections.emptyList();
private void ensureAdditionalAudienceKeysIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
additionalAudienceKeys_ = new java.util.ArrayList(additionalAudienceKeys_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder> additionalAudienceKeysBuilder_;
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public java.util.List getAdditionalAudienceKeysList() {
if (additionalAudienceKeysBuilder_ == null) {
return java.util.Collections.unmodifiableList(additionalAudienceKeys_);
} else {
return additionalAudienceKeysBuilder_.getMessageList();
}
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public int getAdditionalAudienceKeysCount() {
if (additionalAudienceKeysBuilder_ == null) {
return additionalAudienceKeys_.size();
} else {
return additionalAudienceKeysBuilder_.getCount();
}
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public io.provenance.scope.proto.PK.PublicKey getAdditionalAudienceKeys(int index) {
if (additionalAudienceKeysBuilder_ == null) {
return additionalAudienceKeys_.get(index);
} else {
return additionalAudienceKeysBuilder_.getMessage(index);
}
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder setAdditionalAudienceKeys(
int index, io.provenance.scope.proto.PK.PublicKey value) {
if (additionalAudienceKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.set(index, value);
onChanged();
} else {
additionalAudienceKeysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder setAdditionalAudienceKeys(
int index, io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) {
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.set(index, builderForValue.build());
onChanged();
} else {
additionalAudienceKeysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder addAdditionalAudienceKeys(io.provenance.scope.proto.PK.PublicKey value) {
if (additionalAudienceKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.add(value);
onChanged();
} else {
additionalAudienceKeysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder addAdditionalAudienceKeys(
int index, io.provenance.scope.proto.PK.PublicKey value) {
if (additionalAudienceKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.add(index, value);
onChanged();
} else {
additionalAudienceKeysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder addAdditionalAudienceKeys(
io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) {
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.add(builderForValue.build());
onChanged();
} else {
additionalAudienceKeysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder addAdditionalAudienceKeys(
int index, io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) {
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.add(index, builderForValue.build());
onChanged();
} else {
additionalAudienceKeysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder addAllAdditionalAudienceKeys(
java.lang.Iterable extends io.provenance.scope.proto.PK.PublicKey> values) {
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalAudienceKeys_);
onChanged();
} else {
additionalAudienceKeysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder clearAdditionalAudienceKeys() {
if (additionalAudienceKeysBuilder_ == null) {
additionalAudienceKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
additionalAudienceKeysBuilder_.clear();
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public Builder removeAdditionalAudienceKeys(int index) {
if (additionalAudienceKeysBuilder_ == null) {
ensureAdditionalAudienceKeysIsMutable();
additionalAudienceKeys_.remove(index);
onChanged();
} else {
additionalAudienceKeysBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public io.provenance.scope.proto.PK.PublicKey.Builder getAdditionalAudienceKeysBuilder(
int index) {
return getAdditionalAudienceKeysFieldBuilder().getBuilder(index);
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public io.provenance.scope.proto.PK.PublicKeyOrBuilder getAdditionalAudienceKeysOrBuilder(
int index) {
if (additionalAudienceKeysBuilder_ == null) {
return additionalAudienceKeys_.get(index); } else {
return additionalAudienceKeysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public java.util.List extends io.provenance.scope.proto.PK.PublicKeyOrBuilder>
getAdditionalAudienceKeysOrBuilderList() {
if (additionalAudienceKeysBuilder_ != null) {
return additionalAudienceKeysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additionalAudienceKeys_);
}
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public io.provenance.scope.proto.PK.PublicKey.Builder addAdditionalAudienceKeysBuilder() {
return getAdditionalAudienceKeysFieldBuilder().addBuilder(
io.provenance.scope.proto.PK.PublicKey.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public io.provenance.scope.proto.PK.PublicKey.Builder addAdditionalAudienceKeysBuilder(
int index) {
return getAdditionalAudienceKeysFieldBuilder().addBuilder(
index, io.provenance.scope.proto.PK.PublicKey.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.PublicKey additional_audience_keys = 2;
*/
public java.util.List
getAdditionalAudienceKeysBuilderList() {
return getAdditionalAudienceKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder>
getAdditionalAudienceKeysFieldBuilder() {
if (additionalAudienceKeysBuilder_ == null) {
additionalAudienceKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder>(
additionalAudienceKeys_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
additionalAudienceKeys_ = null;
}
return additionalAudienceKeysBuilder_;
}
private boolean useRequesterKey_ ;
/**
* bool use_requester_key = 3;
* @return The useRequesterKey.
*/
@java.lang.Override
public boolean getUseRequesterKey() {
return useRequesterKey_;
}
/**
* bool use_requester_key = 3;
* @param value The useRequesterKey to set.
* @return This builder for chaining.
*/
public Builder setUseRequesterKey(boolean value) {
useRequesterKey_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool use_requester_key = 3;
* @return This builder for chaining.
*/
public Builder clearUseRequesterKey() {
bitField0_ = (bitField0_ & ~0x00000004);
useRequesterKey_ = false;
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:tech.figure.objectstore.gateway.PutObjectRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.PutObjectRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PutObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutObjectResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.PutObjectResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.PutObjectResponse}
*/
public static final class PutObjectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.PutObjectResponse)
PutObjectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutObjectResponse.newBuilder() to construct.
private PutObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutObjectResponse() {
hash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PutObjectResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = 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(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse) obj;
if (!getHash()
.equals(other.getHash())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse 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 tech.figure.objectstore.gateway.PutObjectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.PutObjectResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
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: {
hash_ = 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 hash_ = "";
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* base64-encoded object hash (sha-256 of provided ObjectWithMeta [object] serialized proto)
*
*
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = 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:tech.figure.objectstore.gateway.PutObjectResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.PutObjectResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PutObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterExistingObjectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RegisterExistingObjectRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
java.util.List
getGranteeAddressList();
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
int getGranteeAddressCount();
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
java.lang.String getGranteeAddress(int index);
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes(int index);
}
/**
*
**
* Allows registering pre-existing object-store objects so that they may be fetched and managed in the same way as objects stored via
* the PutObject route
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.RegisterExistingObjectRequest}
*/
public static final class RegisterExistingObjectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RegisterExistingObjectRequest)
RegisterExistingObjectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterExistingObjectRequest.newBuilder() to construct.
private RegisterExistingObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegisterExistingObjectRequest() {
hash_ = "";
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegisterExistingObjectRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
public com.google.protobuf.ProtocolStringList
getGranteeAddressList() {
return granteeAddress_;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
public int getGranteeAddressCount() {
return granteeAddress_.size();
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
public java.lang.String getGranteeAddress(int index) {
return granteeAddress_.get(index);
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes(int index) {
return granteeAddress_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
for (int i = 0; i < granteeAddress_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granteeAddress_.getRaw(i));
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
{
int dataSize = 0;
for (int i = 0; i < granteeAddress_.size(); i++) {
dataSize += computeStringSizeNoTag(granteeAddress_.getRaw(i));
}
size += dataSize;
size += 1 * getGranteeAddressList().size();
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getGranteeAddressList()
.equals(other.getGranteeAddressList())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
if (getGranteeAddressCount() > 0) {
hash = (37 * hash) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddressList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest 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;
}
/**
*
**
* Allows registering pre-existing object-store objects so that they may be fetched and managed in the same way as objects stored via
* the PutObject route
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.RegisterExistingObjectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RegisterExistingObjectRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
granteeAddress_.makeImmutable();
result.granteeAddress_ = granteeAddress_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.granteeAddress_.isEmpty()) {
if (granteeAddress_.isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000002;
} else {
ensureGranteeAddressIsMutable();
granteeAddress_.addAll(other.granteeAddress_);
}
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: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureGranteeAddressIsMutable();
granteeAddress_.add(s);
break;
} // case 18
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 hash_ = "";
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* the hash of the object in object store (the caller's access to this object will be verified during the course of this call)
*
*
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGranteeAddressIsMutable() {
if (!granteeAddress_.isModifiable()) {
granteeAddress_ = new com.google.protobuf.LazyStringArrayList(granteeAddress_);
}
bitField0_ |= 0x00000002;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
public com.google.protobuf.ProtocolStringList
getGranteeAddressList() {
granteeAddress_.makeImmutable();
return granteeAddress_;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
public int getGranteeAddressCount() {
return granteeAddress_.size();
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
public java.lang.String getGranteeAddress(int index) {
return granteeAddress_.get(index);
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes(int index) {
return granteeAddress_.getByteString(index);
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param index The index to set the value at.
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGranteeAddressIsMutable();
granteeAddress_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param value The granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGranteeAddressIsMutable();
granteeAddress_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param values The granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addAllGranteeAddress(
java.lang.Iterable values) {
ensureGranteeAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, granteeAddress_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* addresses that should have access to fetch this object via the FetchObjectByHash rpc
*
*
* repeated string grantee_address = 2;
* @param value The bytes of the granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGranteeAddressIsMutable();
granteeAddress_.add(value);
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.RegisterExistingObjectRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RegisterExistingObjectRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegisterExistingObjectRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterExistingObjectResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RegisterExistingObjectResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return The request.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getRequest();
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder getRequestOrBuilder();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RegisterExistingObjectResponse}
*/
public static final class RegisterExistingObjectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RegisterExistingObjectResponse)
RegisterExistingObjectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterExistingObjectResponse.newBuilder() to construct.
private RegisterExistingObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegisterExistingObjectResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegisterExistingObjectResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request_;
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return The request.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getRequest() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance() : request_;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance() : request_;
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) 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 (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse 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 tech.figure.objectstore.gateway.RegisterExistingObjectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RegisterExistingObjectResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.request_ = requestBuilder_ == null
? request_
: requestBuilder_.build();
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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(
getRequestFieldBuilder().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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder> requestBuilder_;
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
* @return The request.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public Builder setRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public Builder setRequest(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public Builder mergeRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
request_ != null &&
request_ != tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance()) {
getRequestBuilder().mergeFrom(value);
} else {
request_ = value;
}
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance() : request_;
}
}
/**
* .tech.figure.objectstore.gateway.RegisterExistingObjectRequest request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
@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:tech.figure.objectstore.gateway.RegisterExistingObjectResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RegisterExistingObjectResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegisterExistingObjectResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchObjectByHashRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.FetchObjectByHashRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.FetchObjectByHashRequest}
*/
public static final class FetchObjectByHashRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.FetchObjectByHashRequest)
FetchObjectByHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchObjectByHashRequest.newBuilder() to construct.
private FetchObjectByHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchObjectByHashRequest() {
hash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchObjectByHashRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = 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(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest) obj;
if (!getHash()
.equals(other.getHash())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest 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 tech.figure.objectstore.gateway.FetchObjectByHashRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.FetchObjectByHashRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
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: {
hash_ = 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 hash_ = "";
/**
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = 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:tech.figure.objectstore.gateway.FetchObjectByHashRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.FetchObjectByHashRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchObjectByHashRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchObjectByHashResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.FetchObjectByHashResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
boolean hasObject();
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject();
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.FetchObjectByHashResponse}
*/
public static final class FetchObjectByHashResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.FetchObjectByHashResponse)
FetchObjectByHashResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchObjectByHashResponse.newBuilder() to construct.
private FetchObjectByHashResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchObjectByHashResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchObjectByHashResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.Builder.class);
}
public static final int OBJECT_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta object_;
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
@java.lang.Override
public boolean hasObject() {
return object_ != null;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject() {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder() {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
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 (object_ != null) {
output.writeMessage(1, getObject());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (object_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getObject());
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse) obj;
if (hasObject() != other.hasObject()) return false;
if (hasObject()) {
if (!getObject()
.equals(other.getObject())) 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 (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse 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 tech.figure.objectstore.gateway.FetchObjectByHashResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.FetchObjectByHashResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.object_ = objectBuilder_ == null
? object_
: objectBuilder_.build();
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.getDefaultInstance()) return this;
if (other.hasObject()) {
mergeObject(other.getObject());
}
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(
getObjectFieldBuilder().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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta object_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder> objectBuilder_;
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return Whether the object field is set.
*/
public boolean hasObject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
* @return The object.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getObject() {
if (objectBuilder_ == null) {
return object_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
} else {
return objectBuilder_.getMessage();
}
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder setObject(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
} else {
objectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder setObject(
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder builderForValue) {
if (objectBuilder_ == null) {
object_ = builderForValue.build();
} else {
objectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder mergeObject(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta value) {
if (objectBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
object_ != null &&
object_ != tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance()) {
getObjectBuilder().mergeFrom(value);
} else {
object_ = value;
}
} else {
objectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public Builder clearObject() {
bitField0_ = (bitField0_ & ~0x00000001);
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder getObjectBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder getObjectOrBuilder() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilder();
} else {
return object_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance() : object_;
}
}
/**
* .tech.figure.objectstore.gateway.ObjectWithMeta object = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder>(
getObject(),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
@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:tech.figure.objectstore.gateway.FetchObjectByHashResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.FetchObjectByHashResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchObjectByHashResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GrantObjectPermissionsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.GrantObjectPermissionsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.GrantObjectPermissionsRequest}
*/
public static final class GrantObjectPermissionsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.GrantObjectPermissionsRequest)
GrantObjectPermissionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrantObjectPermissionsRequest.newBuilder() to construct.
private GrantObjectPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrantObjectPermissionsRequest() {
granteeAddress_ = "";
hash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantObjectPermissionsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.Builder.class);
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASH_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = 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(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hash_);
}
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(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hash_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest) obj;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getHash()
.equals(other.getHash())) 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) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GrantObjectPermissionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.GrantObjectPermissionsRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
granteeAddress_ = "";
hash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hash_ = hash_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.getDefaultInstance()) return this;
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000002;
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: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 granteeAddress_ = "";
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 account address. This grantee will receive an object grant for the target hash
*
*
* string grantee_address = 1;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object hash_ = "";
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The hash of the object for which to grant permissions
*
*
* string hash = 2;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.GrantObjectPermissionsRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.GrantObjectPermissionsRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GrantObjectPermissionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.GrantObjectPermissionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.GrantObjectPermissionsResponse}
*/
public static final class GrantObjectPermissionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.GrantObjectPermissionsResponse)
GrantObjectPermissionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrantObjectPermissionsResponse.newBuilder() to construct.
private GrantObjectPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrantObjectPermissionsResponse() {
granteeAddress_ = "";
hash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantObjectPermissionsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.Builder.class);
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASH_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = 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(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hash_);
}
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(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hash_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse) obj;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getHash()
.equals(other.getHash())) 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) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GrantObjectPermissionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.GrantObjectPermissionsResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
granteeAddress_ = "";
hash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hash_ = hash_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.getDefaultInstance()) return this;
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000002;
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: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 granteeAddress_ = "";
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 account address. This grantee received an object grant for the target hash
*
*
* string grantee_address = 1;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object hash_ = "";
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The hash of the object for which permissions were granted
*
*
* string hash = 2;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.GrantObjectPermissionsResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.GrantObjectPermissionsResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchGrantObjectPermissionsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return Whether the allHashes field is set.
*/
boolean hasAllHashes();
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return The allHashes.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getAllHashes();
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder getAllHashesOrBuilder();
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return Whether the specifiedHashes field is set.
*/
boolean hasSpecifiedHashes();
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return The specifiedHashes.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getSpecifiedHashes();
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder getSpecifiedHashesOrBuilder();
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.GrantTargetCase getGrantTargetCase();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest}
*/
public static final class BatchGrantObjectPermissionsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest)
BatchGrantObjectPermissionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchGrantObjectPermissionsRequest.newBuilder() to construct.
private BatchGrantObjectPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchGrantObjectPermissionsRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchGrantObjectPermissionsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.Builder.class);
}
private int grantTargetCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object grantTarget_;
public enum GrantTargetCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ALL_HASHES(1),
SPECIFIED_HASHES(2),
GRANTTARGET_NOT_SET(0);
private final int value;
private GrantTargetCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GrantTargetCase valueOf(int value) {
return forNumber(value);
}
public static GrantTargetCase forNumber(int value) {
switch (value) {
case 1: return ALL_HASHES;
case 2: return SPECIFIED_HASHES;
case 0: return GRANTTARGET_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public GrantTargetCase
getGrantTargetCase() {
return GrantTargetCase.forNumber(
grantTargetCase_);
}
public static final int ALL_HASHES_FIELD_NUMBER = 1;
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return Whether the allHashes field is set.
*/
@java.lang.Override
public boolean hasAllHashes() {
return grantTargetCase_ == 1;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return The allHashes.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getAllHashes() {
if (grantTargetCase_ == 1) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder getAllHashesOrBuilder() {
if (grantTargetCase_ == 1) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
public static final int SPECIFIED_HASHES_FIELD_NUMBER = 2;
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return Whether the specifiedHashes field is set.
*/
@java.lang.Override
public boolean hasSpecifiedHashes() {
return grantTargetCase_ == 2;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return The specifiedHashes.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getSpecifiedHashes() {
if (grantTargetCase_ == 2) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder getSpecifiedHashesOrBuilder() {
if (grantTargetCase_ == 2) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
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 (grantTargetCase_ == 1) {
output.writeMessage(1, (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_);
}
if (grantTargetCase_ == 2) {
output.writeMessage(2, (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (grantTargetCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_);
}
if (grantTargetCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest) obj;
if (!getGrantTargetCase().equals(other.getGrantTargetCase())) return false;
switch (grantTargetCase_) {
case 1:
if (!getAllHashes()
.equals(other.getAllHashes())) return false;
break;
case 2:
if (!getSpecifiedHashes()
.equals(other.getSpecifiedHashes())) return false;
break;
case 0:
default:
}
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();
switch (grantTargetCase_) {
case 1:
hash = (37 * hash) + ALL_HASHES_FIELD_NUMBER;
hash = (53 * hash) + getAllHashes().hashCode();
break;
case 2:
hash = (37 * hash) + SPECIFIED_HASHES_FIELD_NUMBER;
hash = (53 * hash) + getSpecifiedHashes().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (allHashesBuilder_ != null) {
allHashesBuilder_.clear();
}
if (specifiedHashesBuilder_ != null) {
specifiedHashesBuilder_.clear();
}
grantTargetCase_ = 0;
grantTarget_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest result) {
result.grantTargetCase_ = grantTargetCase_;
result.grantTarget_ = this.grantTarget_;
if (grantTargetCase_ == 1 &&
allHashesBuilder_ != null) {
result.grantTarget_ = allHashesBuilder_.build();
}
if (grantTargetCase_ == 2 &&
specifiedHashesBuilder_ != null) {
result.grantTarget_ = specifiedHashesBuilder_.build();
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.getDefaultInstance()) return this;
switch (other.getGrantTargetCase()) {
case ALL_HASHES: {
mergeAllHashes(other.getAllHashes());
break;
}
case SPECIFIED_HASHES: {
mergeSpecifiedHashes(other.getSpecifiedHashes());
break;
}
case GRANTTARGET_NOT_SET: {
break;
}
}
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(
getAllHashesFieldBuilder().getBuilder(),
extensionRegistry);
grantTargetCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getSpecifiedHashesFieldBuilder().getBuilder(),
extensionRegistry);
grantTargetCase_ = 2;
break;
} // case 18
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 grantTargetCase_ = 0;
private java.lang.Object grantTarget_;
public GrantTargetCase
getGrantTargetCase() {
return GrantTargetCase.forNumber(
grantTargetCase_);
}
public Builder clearGrantTarget() {
grantTargetCase_ = 0;
grantTarget_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder> allHashesBuilder_;
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return Whether the allHashes field is set.
*/
@java.lang.Override
public boolean hasAllHashes() {
return grantTargetCase_ == 1;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
* @return The allHashes.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getAllHashes() {
if (allHashesBuilder_ == null) {
if (grantTargetCase_ == 1) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
} else {
if (grantTargetCase_ == 1) {
return allHashesBuilder_.getMessage();
}
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
public Builder setAllHashes(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget value) {
if (allHashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
grantTarget_ = value;
onChanged();
} else {
allHashesBuilder_.setMessage(value);
}
grantTargetCase_ = 1;
return this;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
public Builder setAllHashes(
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder builderForValue) {
if (allHashesBuilder_ == null) {
grantTarget_ = builderForValue.build();
onChanged();
} else {
allHashesBuilder_.setMessage(builderForValue.build());
}
grantTargetCase_ = 1;
return this;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
public Builder mergeAllHashes(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget value) {
if (allHashesBuilder_ == null) {
if (grantTargetCase_ == 1 &&
grantTarget_ != tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance()) {
grantTarget_ = tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.newBuilder((tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_)
.mergeFrom(value).buildPartial();
} else {
grantTarget_ = value;
}
onChanged();
} else {
if (grantTargetCase_ == 1) {
allHashesBuilder_.mergeFrom(value);
} else {
allHashesBuilder_.setMessage(value);
}
}
grantTargetCase_ = 1;
return this;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
public Builder clearAllHashes() {
if (allHashesBuilder_ == null) {
if (grantTargetCase_ == 1) {
grantTargetCase_ = 0;
grantTarget_ = null;
onChanged();
}
} else {
if (grantTargetCase_ == 1) {
grantTargetCase_ = 0;
grantTarget_ = null;
}
allHashesBuilder_.clear();
}
return this;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder getAllHashesBuilder() {
return getAllHashesFieldBuilder().getBuilder();
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder getAllHashesOrBuilder() {
if ((grantTargetCase_ == 1) && (allHashesBuilder_ != null)) {
return allHashesBuilder_.getMessageOrBuilder();
} else {
if (grantTargetCase_ == 1) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant
*
*
* .tech.figure.objectstore.gateway.AllHashesObjectGrantTarget all_hashes = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder>
getAllHashesFieldBuilder() {
if (allHashesBuilder_ == null) {
if (!(grantTargetCase_ == 1)) {
grantTarget_ = tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
allHashesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder>(
(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) grantTarget_,
getParentForChildren(),
isClean());
grantTarget_ = null;
}
grantTargetCase_ = 1;
onChanged();
return allHashesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder> specifiedHashesBuilder_;
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return Whether the specifiedHashes field is set.
*/
@java.lang.Override
public boolean hasSpecifiedHashes() {
return grantTargetCase_ == 2;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
* @return The specifiedHashes.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getSpecifiedHashes() {
if (specifiedHashesBuilder_ == null) {
if (grantTargetCase_ == 2) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
} else {
if (grantTargetCase_ == 2) {
return specifiedHashesBuilder_.getMessage();
}
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
public Builder setSpecifiedHashes(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget value) {
if (specifiedHashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
grantTarget_ = value;
onChanged();
} else {
specifiedHashesBuilder_.setMessage(value);
}
grantTargetCase_ = 2;
return this;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
public Builder setSpecifiedHashes(
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder builderForValue) {
if (specifiedHashesBuilder_ == null) {
grantTarget_ = builderForValue.build();
onChanged();
} else {
specifiedHashesBuilder_.setMessage(builderForValue.build());
}
grantTargetCase_ = 2;
return this;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
public Builder mergeSpecifiedHashes(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget value) {
if (specifiedHashesBuilder_ == null) {
if (grantTargetCase_ == 2 &&
grantTarget_ != tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance()) {
grantTarget_ = tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.newBuilder((tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_)
.mergeFrom(value).buildPartial();
} else {
grantTarget_ = value;
}
onChanged();
} else {
if (grantTargetCase_ == 2) {
specifiedHashesBuilder_.mergeFrom(value);
} else {
specifiedHashesBuilder_.setMessage(value);
}
}
grantTargetCase_ = 2;
return this;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
public Builder clearSpecifiedHashes() {
if (specifiedHashesBuilder_ == null) {
if (grantTargetCase_ == 2) {
grantTargetCase_ = 0;
grantTarget_ = null;
onChanged();
}
} else {
if (grantTargetCase_ == 2) {
grantTargetCase_ = 0;
grantTarget_ = null;
}
specifiedHashesBuilder_.clear();
}
return this;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder getSpecifiedHashesBuilder() {
return getSpecifiedHashesFieldBuilder().getBuilder();
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder getSpecifiedHashesOrBuilder() {
if ((grantTargetCase_ == 2) && (specifiedHashesBuilder_ != null)) {
return specifiedHashesBuilder_.getMessageOrBuilder();
} else {
if (grantTargetCase_ == 2) {
return (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_;
}
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* .tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget specified_hashes = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder>
getSpecifiedHashesFieldBuilder() {
if (specifiedHashesBuilder_ == null) {
if (!(grantTargetCase_ == 2)) {
grantTarget_ = tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
specifiedHashesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder>(
(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) grantTarget_,
getParentForChildren(),
isClean());
grantTarget_ = null;
}
grantTargetCase_ = 2;
onChanged();
return specifiedHashesBuilder_;
}
@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:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchGrantObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchGrantObjectPermissionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
java.lang.String getGranterAddress();
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
com.google.protobuf.ByteString
getGranterAddressBytes();
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* The grant's place in the batch order. The first grant is numbered 1, and the final grant will have a number matching the total_grants_expected value
*
*
* int32 grant_number = 4;
* @return The grantNumber.
*/
int getGrantNumber();
/**
*
* The total number of grants expected to be given in this batch process
*
*
* int32 total_grants_expected = 5;
* @return The totalGrantsExpected.
*/
int getTotalGrantsExpected();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse}
*/
public static final class BatchGrantObjectPermissionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse)
BatchGrantObjectPermissionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchGrantObjectPermissionsResponse.newBuilder() to construct.
private BatchGrantObjectPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchGrantObjectPermissionsResponse() {
hash_ = "";
granterAddress_ = "";
granteeAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchGrantObjectPermissionsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTER_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object granterAddress_ = "";
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
@java.lang.Override
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
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();
granterAddress_ = s;
return s;
}
}
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANT_NUMBER_FIELD_NUMBER = 4;
private int grantNumber_ = 0;
/**
*
* The grant's place in the batch order. The first grant is numbered 1, and the final grant will have a number matching the total_grants_expected value
*
*
* int32 grant_number = 4;
* @return The grantNumber.
*/
@java.lang.Override
public int getGrantNumber() {
return grantNumber_;
}
public static final int TOTAL_GRANTS_EXPECTED_FIELD_NUMBER = 5;
private int totalGrantsExpected_ = 0;
/**
*
* The total number of grants expected to be given in this batch process
*
*
* int32 total_grants_expected = 5;
* @return The totalGrantsExpected.
*/
@java.lang.Override
public int getTotalGrantsExpected() {
return totalGrantsExpected_;
}
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(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granterAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, granteeAddress_);
}
if (grantNumber_ != 0) {
output.writeInt32(4, grantNumber_);
}
if (totalGrantsExpected_ != 0) {
output.writeInt32(5, totalGrantsExpected_);
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, granterAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, granteeAddress_);
}
if (grantNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, grantNumber_);
}
if (totalGrantsExpected_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, totalGrantsExpected_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getGranterAddress()
.equals(other.getGranterAddress())) return false;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (getGrantNumber()
!= other.getGrantNumber()) return false;
if (getTotalGrantsExpected()
!= other.getTotalGrantsExpected()) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + GRANTER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranterAddress().hashCode();
hash = (37 * hash) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + GRANT_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getGrantNumber();
hash = (37 * hash) + TOTAL_GRANTS_EXPECTED_FIELD_NUMBER;
hash = (53 * hash) + getTotalGrantsExpected();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
granterAddress_ = "";
granteeAddress_ = "";
grantNumber_ = 0;
totalGrantsExpected_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.granterAddress_ = granterAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.grantNumber_ = grantNumber_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.totalGrantsExpected_ = totalGrantsExpected_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGranterAddress().isEmpty()) {
granterAddress_ = other.granterAddress_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getGrantNumber() != 0) {
setGrantNumber(other.getGrantNumber());
}
if (other.getTotalGrantsExpected() != 0) {
setTotalGrantsExpected(other.getTotalGrantsExpected());
}
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: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
granterAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
grantNumber_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
totalGrantsExpected_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
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 hash_ = "";
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The hash of the object to which permissions were granted
*
*
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object granterAddress_ = "";
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granterAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @param value The granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granterAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranterAddress() {
granterAddress_ = getDefaultInstance().getGranterAddress();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The granter that granted permissions to the grantee on an object hash
*
*
* string granter_address = 2;
* @param value The bytes for granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granterAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object granteeAddress_ = "";
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The grantee that received permissions to the object hash
*
*
* string grantee_address = 3;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int grantNumber_ ;
/**
*
* The grant's place in the batch order. The first grant is numbered 1, and the final grant will have a number matching the total_grants_expected value
*
*
* int32 grant_number = 4;
* @return The grantNumber.
*/
@java.lang.Override
public int getGrantNumber() {
return grantNumber_;
}
/**
*
* The grant's place in the batch order. The first grant is numbered 1, and the final grant will have a number matching the total_grants_expected value
*
*
* int32 grant_number = 4;
* @param value The grantNumber to set.
* @return This builder for chaining.
*/
public Builder setGrantNumber(int value) {
grantNumber_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The grant's place in the batch order. The first grant is numbered 1, and the final grant will have a number matching the total_grants_expected value
*
*
* int32 grant_number = 4;
* @return This builder for chaining.
*/
public Builder clearGrantNumber() {
bitField0_ = (bitField0_ & ~0x00000008);
grantNumber_ = 0;
onChanged();
return this;
}
private int totalGrantsExpected_ ;
/**
*
* The total number of grants expected to be given in this batch process
*
*
* int32 total_grants_expected = 5;
* @return The totalGrantsExpected.
*/
@java.lang.Override
public int getTotalGrantsExpected() {
return totalGrantsExpected_;
}
/**
*
* The total number of grants expected to be given in this batch process
*
*
* int32 total_grants_expected = 5;
* @param value The totalGrantsExpected to set.
* @return This builder for chaining.
*/
public Builder setTotalGrantsExpected(int value) {
totalGrantsExpected_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The total number of grants expected to be given in this batch process
*
*
* int32 total_grants_expected = 5;
* @return This builder for chaining.
*/
public Builder clearTotalGrantsExpected() {
bitField0_ = (bitField0_ & ~0x00000010);
totalGrantsExpected_ = 0;
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:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.BatchGrantObjectPermissionsResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchGrantObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RevokeObjectPermissionsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
java.util.List
getGranteeAddressList();
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
int getGranteeAddressCount();
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
java.lang.String getGranteeAddress(int index);
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes(int index);
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest}
*/
public static final class RevokeObjectPermissionsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest)
RevokeObjectPermissionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RevokeObjectPermissionsRequest.newBuilder() to construct.
private RevokeObjectPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RevokeObjectPermissionsRequest() {
hash_ = "";
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RevokeObjectPermissionsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
public com.google.protobuf.ProtocolStringList
getGranteeAddressList() {
return granteeAddress_;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
public int getGranteeAddressCount() {
return granteeAddress_.size();
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
public java.lang.String getGranteeAddress(int index) {
return granteeAddress_.get(index);
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes(int index) {
return granteeAddress_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
for (int i = 0; i < granteeAddress_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granteeAddress_.getRaw(i));
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
{
int dataSize = 0;
for (int i = 0; i < granteeAddress_.size(); i++) {
dataSize += computeStringSizeNoTag(granteeAddress_.getRaw(i));
}
size += dataSize;
size += 1 * getGranteeAddressList().size();
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getGranteeAddressList()
.equals(other.getGranteeAddressList())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
if (getGranteeAddressCount() > 0) {
hash = (37 * hash) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddressList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest 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 tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
granteeAddress_.makeImmutable();
result.granteeAddress_ = granteeAddress_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.granteeAddress_.isEmpty()) {
if (granteeAddress_.isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000002;
} else {
ensureGranteeAddressIsMutable();
granteeAddress_.addAll(other.granteeAddress_);
}
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: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureGranteeAddressIsMutable();
granteeAddress_.add(s);
break;
} // case 18
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 hash_ = "";
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* the hash of the object to revoke permissions for
*
*
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGranteeAddressIsMutable() {
if (!granteeAddress_.isModifiable()) {
granteeAddress_ = new com.google.protobuf.LazyStringArrayList(granteeAddress_);
}
bitField0_ |= 0x00000002;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return A list containing the granteeAddress.
*/
public com.google.protobuf.ProtocolStringList
getGranteeAddressList() {
granteeAddress_.makeImmutable();
return granteeAddress_;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return The count of granteeAddress.
*/
public int getGranteeAddressCount() {
return granteeAddress_.size();
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the element to return.
* @return The granteeAddress at the given index.
*/
public java.lang.String getGranteeAddress(int index) {
return granteeAddress_.get(index);
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index of the value to return.
* @return The bytes of the granteeAddress at the given index.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes(int index) {
return granteeAddress_.getByteString(index);
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param index The index to set the value at.
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGranteeAddressIsMutable();
granteeAddress_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param value The granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGranteeAddressIsMutable();
granteeAddress_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param values The granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addAllGranteeAddress(
java.lang.Iterable values) {
ensureGranteeAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, granteeAddress_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* the addresses to revoke access to this hash for
*
*
* repeated string grantee_address = 2;
* @param value The bytes of the granteeAddress to add.
* @return This builder for chaining.
*/
public Builder addGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGranteeAddressIsMutable();
granteeAddress_.add(value);
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RevokeObjectPermissionsRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RevokeObjectPermissionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return The request.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getRequest();
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder getRequestOrBuilder();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse}
*/
public static final class RevokeObjectPermissionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse)
RevokeObjectPermissionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RevokeObjectPermissionsResponse.newBuilder() to construct.
private RevokeObjectPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RevokeObjectPermissionsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RevokeObjectPermissionsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request_;
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return The request.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getRequest() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance() : request_;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance() : request_;
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) 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 (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse 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 tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.request_ = requestBuilder_ == null
? request_
: requestBuilder_.build();
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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(
getRequestFieldBuilder().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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder> requestBuilder_;
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
* @return The request.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public Builder setRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public Builder setRequest(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public Builder mergeRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
request_ != null &&
request_ != tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance()) {
getRequestBuilder().mergeFrom(value);
} else {
request_ = value;
}
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance() : request_;
}
}
/**
* .tech.figure.objectstore.gateway.RevokeObjectPermissionsRequest request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
@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:tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RevokeObjectPermissionsResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RevokeObjectPermissionsResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GrantScopePermissionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.GrantScopePermissionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
java.lang.String getScopeAddress();
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
com.google.protobuf.ByteString
getScopeAddressBytes();
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The grantId.
*/
java.lang.String getGrantId();
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
com.google.protobuf.ByteString
getGrantIdBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.GrantScopePermissionRequest}
*/
public static final class GrantScopePermissionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.GrantScopePermissionRequest)
GrantScopePermissionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrantScopePermissionRequest.newBuilder() to construct.
private GrantScopePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrantScopePermissionRequest() {
scopeAddress_ = "";
granteeAddress_ = "";
grantId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantScopePermissionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder.class);
}
public static final int SCOPE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object scopeAddress_ = "";
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
@java.lang.Override
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
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();
scopeAddress_ = s;
return s;
}
}
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANT_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The grantId.
*/
@java.lang.Override
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
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();
grantId_ = s;
return s;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = 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(scopeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, grantId_);
}
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(scopeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, grantId_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest) obj;
if (!getScopeAddress()
.equals(other.getScopeAddress())) return false;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getGrantId()
.equals(other.getGrantId())) 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) + SCOPE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getScopeAddress().hashCode();
hash = (37 * hash) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + GRANT_ID_FIELD_NUMBER;
hash = (53 * hash) + getGrantId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GrantScopePermissionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.GrantScopePermissionRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scopeAddress_ = "";
granteeAddress_ = "";
grantId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scopeAddress_ = scopeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.grantId_ = grantId_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance()) return this;
if (!other.getScopeAddress().isEmpty()) {
scopeAddress_ = other.scopeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getGrantId().isEmpty()) {
grantId_ = other.grantId_;
bitField0_ |= 0x00000004;
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: {
scopeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
grantId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 scopeAddress_ = "";
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scopeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @param value The scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return This builder for chaining.
*/
public Builder clearScopeAddress() {
scopeAddress_ = getDefaultInstance().getScopeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 scope address. The account referenced by grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @param value The bytes for scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 2;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The grantId.
*/
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
grantId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @param value The grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
grantId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @return This builder for chaining.
*/
public Builder clearGrantId() {
grantId_ = getDefaultInstance().getGrantId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 3;
* @param value The bytes for grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
grantId_ = value;
bitField0_ |= 0x00000004;
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:tech.figure.objectstore.gateway.GrantScopePermissionRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.GrantScopePermissionRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GrantScopePermissionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.GrantScopePermissionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return The request.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder getRequestOrBuilder();
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
java.lang.String getGranterAddress();
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
com.google.protobuf.ByteString
getGranterAddressBytes();
/**
*
* If true, the grant was successfully added from the request
*
*
* bool grant_accepted = 3;
* @return The grantAccepted.
*/
boolean getGrantAccepted();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.GrantScopePermissionResponse}
*/
public static final class GrantScopePermissionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.GrantScopePermissionResponse)
GrantScopePermissionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrantScopePermissionResponse.newBuilder() to construct.
private GrantScopePermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrantScopePermissionResponse() {
granterAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantScopePermissionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return The request.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getRequest() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance() : request_;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance() : request_;
}
public static final int GRANTER_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object granterAddress_ = "";
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
@java.lang.Override
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
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();
granterAddress_ = s;
return s;
}
}
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANT_ACCEPTED_FIELD_NUMBER = 3;
private boolean grantAccepted_ = false;
/**
*
* If true, the grant was successfully added from the request
*
*
* bool grant_accepted = 3;
* @return The grantAccepted.
*/
@java.lang.Override
public boolean getGrantAccepted() {
return grantAccepted_;
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granterAddress_);
}
if (grantAccepted_ != false) {
output.writeBool(3, grantAccepted_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granterAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, granterAddress_);
}
if (grantAccepted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, grantAccepted_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (!getGranterAddress()
.equals(other.getGranterAddress())) return false;
if (getGrantAccepted()
!= other.getGrantAccepted()) 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 (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (37 * hash) + GRANTER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranterAddress().hashCode();
hash = (37 * hash) + GRANT_ACCEPTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGrantAccepted());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GrantScopePermissionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.GrantScopePermissionResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
granterAddress_ = "";
grantAccepted_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.request_ = requestBuilder_ == null
? request_
: requestBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.granterAddress_ = granterAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.grantAccepted_ = grantAccepted_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (!other.getGranterAddress().isEmpty()) {
granterAddress_ = other.granterAddress_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getGrantAccepted() != false) {
setGrantAccepted(other.getGrantAccepted());
}
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(
getRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
granterAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
grantAccepted_ = input.readBool();
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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder> requestBuilder_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
* @return The request.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public Builder setRequest(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public Builder setRequest(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public Builder mergeRequest(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
request_ != null &&
request_ != tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance()) {
getRequestBuilder().mergeFrom(value);
} else {
request_ = value;
}
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance() : request_;
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.GrantScopePermissionRequest request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private java.lang.Object granterAddress_ = "";
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The granterAddress.
*/
public java.lang.String getGranterAddress() {
java.lang.Object ref = granterAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granterAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return The bytes for granterAddress.
*/
public com.google.protobuf.ByteString
getGranterAddressBytes() {
java.lang.Object ref = granterAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granterAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @param value The granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granterAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranterAddress() {
granterAddress_ = getDefaultInstance().getGranterAddress();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The address that has read access to the requested scope's underlying records
*
*
* string granter_address = 2;
* @param value The bytes for granterAddress to set.
* @return This builder for chaining.
*/
public Builder setGranterAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granterAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean grantAccepted_ ;
/**
*
* If true, the grant was successfully added from the request
*
*
* bool grant_accepted = 3;
* @return The grantAccepted.
*/
@java.lang.Override
public boolean getGrantAccepted() {
return grantAccepted_;
}
/**
*
* If true, the grant was successfully added from the request
*
*
* bool grant_accepted = 3;
* @param value The grantAccepted to set.
* @return This builder for chaining.
*/
public Builder setGrantAccepted(boolean value) {
grantAccepted_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* If true, the grant was successfully added from the request
*
*
* bool grant_accepted = 3;
* @return This builder for chaining.
*/
public Builder clearGrantAccepted() {
bitField0_ = (bitField0_ & ~0x00000004);
grantAccepted_ = false;
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:tech.figure.objectstore.gateway.GrantScopePermissionResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.GrantScopePermissionResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchGrantScopePermissionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
java.lang.String getScopeAddress();
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
com.google.protobuf.ByteString
getScopeAddressBytes();
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
java.util.List
getGranteesList();
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getGrantees(int index);
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
int getGranteesCount();
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder>
getGranteesOrBuilderList();
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder getGranteesOrBuilder(
int index);
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest}
*/
public static final class BatchGrantScopePermissionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest)
BatchGrantScopePermissionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchGrantScopePermissionRequest.newBuilder() to construct.
private BatchGrantScopePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchGrantScopePermissionRequest() {
scopeAddress_ = "";
grantees_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchGrantScopePermissionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder.class);
}
public static final int SCOPE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object scopeAddress_ = "";
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
@java.lang.Override
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
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();
scopeAddress_ = s;
return s;
}
}
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List grantees_;
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
@java.lang.Override
public java.util.List getGranteesList() {
return grantees_;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
@java.lang.Override
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder>
getGranteesOrBuilderList() {
return grantees_;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
@java.lang.Override
public int getGranteesCount() {
return grantees_.size();
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getGrantees(int index) {
return grantees_.get(index);
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder getGranteesOrBuilder(
int index) {
return grantees_.get(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scopeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeAddress_);
}
for (int i = 0; i < grantees_.size(); i++) {
output.writeMessage(2, grantees_.get(i));
}
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(scopeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeAddress_);
}
for (int i = 0; i < grantees_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, grantees_.get(i));
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest) obj;
if (!getScopeAddress()
.equals(other.getScopeAddress())) return false;
if (!getGranteesList()
.equals(other.getGranteesList())) 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) + SCOPE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getScopeAddress().hashCode();
if (getGranteesCount() > 0) {
hash = (37 * hash) + GRANTEES_FIELD_NUMBER;
hash = (53 * hash) + getGranteesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest 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 tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scopeAddress_ = "";
if (granteesBuilder_ == null) {
grantees_ = java.util.Collections.emptyList();
} else {
grantees_ = null;
granteesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest result) {
if (granteesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
grantees_ = java.util.Collections.unmodifiableList(grantees_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.grantees_ = grantees_;
} else {
result.grantees_ = granteesBuilder_.build();
}
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scopeAddress_ = scopeAddress_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance()) return this;
if (!other.getScopeAddress().isEmpty()) {
scopeAddress_ = other.scopeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (granteesBuilder_ == null) {
if (!other.grantees_.isEmpty()) {
if (grantees_.isEmpty()) {
grantees_ = other.grantees_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGranteesIsMutable();
grantees_.addAll(other.grantees_);
}
onChanged();
}
} else {
if (!other.grantees_.isEmpty()) {
if (granteesBuilder_.isEmpty()) {
granteesBuilder_.dispose();
granteesBuilder_ = null;
grantees_ = other.grantees_;
bitField0_ = (bitField0_ & ~0x00000002);
granteesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGranteesFieldBuilder() : null;
} else {
granteesBuilder_.addAllMessages(other.grantees_);
}
}
}
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: {
scopeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee m =
input.readMessage(
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.parser(),
extensionRegistry);
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
grantees_.add(m);
} else {
granteesBuilder_.addMessage(m);
}
break;
} // case 18
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 scopeAddress_ = "";
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scopeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @param value The scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @return This builder for chaining.
*/
public Builder clearScopeAddress() {
scopeAddress_ = getDefaultInstance().getScopeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 scope address. The account referenced by each grantee's grantee_address will receive read permissions through this service to the scope's underlying records
*
*
* string scope_address = 1;
* @param value The bytes for scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List grantees_ =
java.util.Collections.emptyList();
private void ensureGranteesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
grantees_ = new java.util.ArrayList(grantees_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder> granteesBuilder_;
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public java.util.List getGranteesList() {
if (granteesBuilder_ == null) {
return java.util.Collections.unmodifiableList(grantees_);
} else {
return granteesBuilder_.getMessageList();
}
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public int getGranteesCount() {
if (granteesBuilder_ == null) {
return grantees_.size();
} else {
return granteesBuilder_.getCount();
}
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getGrantees(int index) {
if (granteesBuilder_ == null) {
return grantees_.get(index);
} else {
return granteesBuilder_.getMessage(index);
}
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder setGrantees(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee value) {
if (granteesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGranteesIsMutable();
grantees_.set(index, value);
onChanged();
} else {
granteesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder setGrantees(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder builderForValue) {
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
grantees_.set(index, builderForValue.build());
onChanged();
} else {
granteesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder addGrantees(tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee value) {
if (granteesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGranteesIsMutable();
grantees_.add(value);
onChanged();
} else {
granteesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder addGrantees(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee value) {
if (granteesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGranteesIsMutable();
grantees_.add(index, value);
onChanged();
} else {
granteesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder addGrantees(
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder builderForValue) {
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
grantees_.add(builderForValue.build());
onChanged();
} else {
granteesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder addGrantees(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder builderForValue) {
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
grantees_.add(index, builderForValue.build());
onChanged();
} else {
granteesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder addAllGrantees(
java.lang.Iterable extends tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee> values) {
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grantees_);
onChanged();
} else {
granteesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder clearGrantees() {
if (granteesBuilder_ == null) {
grantees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
granteesBuilder_.clear();
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public Builder removeGrantees(int index) {
if (granteesBuilder_ == null) {
ensureGranteesIsMutable();
grantees_.remove(index);
onChanged();
} else {
granteesBuilder_.remove(index);
}
return this;
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder getGranteesBuilder(
int index) {
return getGranteesFieldBuilder().getBuilder(index);
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder getGranteesOrBuilder(
int index) {
if (granteesBuilder_ == null) {
return grantees_.get(index); } else {
return granteesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder>
getGranteesOrBuilderList() {
if (granteesBuilder_ != null) {
return granteesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grantees_);
}
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder addGranteesBuilder() {
return getGranteesFieldBuilder().addBuilder(
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.getDefaultInstance());
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder addGranteesBuilder(
int index) {
return getGranteesFieldBuilder().addBuilder(
index, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.getDefaultInstance());
}
/**
*
* Each grantee to receive scope permissions. Requests that do not include at least one record in this array, or requests containing invalid grantees will be rejected
*
*
* repeated .tech.figure.objectstore.gateway.ScopeGrantee grantees = 2;
*/
public java.util.List
getGranteesBuilderList() {
return getGranteesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder>
getGranteesFieldBuilder() {
if (granteesBuilder_ == null) {
granteesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder>(
grantees_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
grantees_ = null;
}
return granteesBuilder_;
}
@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:tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchGrantScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchGrantScopePermissionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return The request.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder getRequestOrBuilder();
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
java.util.List
getGrantResponsesList();
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getGrantResponses(int index);
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
int getGrantResponsesCount();
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder>
getGrantResponsesOrBuilderList();
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder getGrantResponsesOrBuilder(
int index);
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse}
*/
public static final class BatchGrantScopePermissionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse)
BatchGrantScopePermissionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchGrantScopePermissionResponse.newBuilder() to construct.
private BatchGrantScopePermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchGrantScopePermissionResponse() {
grantResponses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchGrantScopePermissionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return The request.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getRequest() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance() : request_;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance() : request_;
}
public static final int GRANT_RESPONSES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List grantResponses_;
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
@java.lang.Override
public java.util.List getGrantResponsesList() {
return grantResponses_;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
@java.lang.Override
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder>
getGrantResponsesOrBuilderList() {
return grantResponses_;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
@java.lang.Override
public int getGrantResponsesCount() {
return grantResponses_.size();
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getGrantResponses(int index) {
return grantResponses_.get(index);
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder getGrantResponsesOrBuilder(
int index) {
return grantResponses_.get(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 (request_ != null) {
output.writeMessage(1, getRequest());
}
for (int i = 0; i < grantResponses_.size(); i++) {
output.writeMessage(2, grantResponses_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
for (int i = 0; i < grantResponses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, grantResponses_.get(i));
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (!getGrantResponsesList()
.equals(other.getGrantResponsesList())) 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 (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (getGrantResponsesCount() > 0) {
hash = (37 * hash) + GRANT_RESPONSES_FIELD_NUMBER;
hash = (53 * hash) + getGrantResponsesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse 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 tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
if (grantResponsesBuilder_ == null) {
grantResponses_ = java.util.Collections.emptyList();
} else {
grantResponses_ = null;
grantResponsesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse result) {
if (grantResponsesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
grantResponses_ = java.util.Collections.unmodifiableList(grantResponses_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.grantResponses_ = grantResponses_;
} else {
result.grantResponses_ = grantResponsesBuilder_.build();
}
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.request_ = requestBuilder_ == null
? request_
: requestBuilder_.build();
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (grantResponsesBuilder_ == null) {
if (!other.grantResponses_.isEmpty()) {
if (grantResponses_.isEmpty()) {
grantResponses_ = other.grantResponses_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGrantResponsesIsMutable();
grantResponses_.addAll(other.grantResponses_);
}
onChanged();
}
} else {
if (!other.grantResponses_.isEmpty()) {
if (grantResponsesBuilder_.isEmpty()) {
grantResponsesBuilder_.dispose();
grantResponsesBuilder_ = null;
grantResponses_ = other.grantResponses_;
bitField0_ = (bitField0_ & ~0x00000002);
grantResponsesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGrantResponsesFieldBuilder() : null;
} else {
grantResponsesBuilder_.addAllMessages(other.grantResponses_);
}
}
}
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(
getRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse m =
input.readMessage(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.parser(),
extensionRegistry);
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
grantResponses_.add(m);
} else {
grantResponsesBuilder_.addMessage(m);
}
break;
} // case 18
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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder> requestBuilder_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
* @return The request.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public Builder setRequest(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public Builder setRequest(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public Builder mergeRequest(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
request_ != null &&
request_ != tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance()) {
getRequestBuilder().mergeFrom(value);
} else {
request_ = value;
}
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance() : request_;
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.BatchGrantScopePermissionRequest request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private java.util.List grantResponses_ =
java.util.Collections.emptyList();
private void ensureGrantResponsesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
grantResponses_ = new java.util.ArrayList(grantResponses_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder> grantResponsesBuilder_;
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public java.util.List getGrantResponsesList() {
if (grantResponsesBuilder_ == null) {
return java.util.Collections.unmodifiableList(grantResponses_);
} else {
return grantResponsesBuilder_.getMessageList();
}
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public int getGrantResponsesCount() {
if (grantResponsesBuilder_ == null) {
return grantResponses_.size();
} else {
return grantResponsesBuilder_.getCount();
}
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse getGrantResponses(int index) {
if (grantResponsesBuilder_ == null) {
return grantResponses_.get(index);
} else {
return grantResponsesBuilder_.getMessage(index);
}
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder setGrantResponses(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse value) {
if (grantResponsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantResponsesIsMutable();
grantResponses_.set(index, value);
onChanged();
} else {
grantResponsesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder setGrantResponses(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder builderForValue) {
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
grantResponses_.set(index, builderForValue.build());
onChanged();
} else {
grantResponsesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder addGrantResponses(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse value) {
if (grantResponsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantResponsesIsMutable();
grantResponses_.add(value);
onChanged();
} else {
grantResponsesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder addGrantResponses(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse value) {
if (grantResponsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantResponsesIsMutable();
grantResponses_.add(index, value);
onChanged();
} else {
grantResponsesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder addGrantResponses(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder builderForValue) {
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
grantResponses_.add(builderForValue.build());
onChanged();
} else {
grantResponsesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder addGrantResponses(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder builderForValue) {
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
grantResponses_.add(index, builderForValue.build());
onChanged();
} else {
grantResponsesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder addAllGrantResponses(
java.lang.Iterable extends tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse> values) {
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grantResponses_);
onChanged();
} else {
grantResponsesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder clearGrantResponses() {
if (grantResponsesBuilder_ == null) {
grantResponses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
grantResponsesBuilder_.clear();
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public Builder removeGrantResponses(int index) {
if (grantResponsesBuilder_ == null) {
ensureGrantResponsesIsMutable();
grantResponses_.remove(index);
onChanged();
} else {
grantResponsesBuilder_.remove(index);
}
return this;
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder getGrantResponsesBuilder(
int index) {
return getGrantResponsesFieldBuilder().getBuilder(index);
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder getGrantResponsesOrBuilder(
int index) {
if (grantResponsesBuilder_ == null) {
return grantResponses_.get(index); } else {
return grantResponsesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder>
getGrantResponsesOrBuilderList() {
if (grantResponsesBuilder_ != null) {
return grantResponsesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grantResponses_);
}
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder addGrantResponsesBuilder() {
return getGrantResponsesFieldBuilder().addBuilder(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.getDefaultInstance());
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder addGrantResponsesBuilder(
int index) {
return getGrantResponsesFieldBuilder().addBuilder(
index, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.getDefaultInstance());
}
/**
*
* Details about each grant made in the batch
*
*
* repeated .tech.figure.objectstore.gateway.GrantScopePermissionResponse grant_responses = 2;
*/
public java.util.List
getGrantResponsesBuilderList() {
return getGrantResponsesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder>
getGrantResponsesFieldBuilder() {
if (grantResponsesBuilder_ == null) {
grantResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponseOrBuilder>(
grantResponses_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
grantResponses_ = null;
}
return grantResponsesBuilder_;
}
@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:tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.BatchGrantScopePermissionResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchGrantScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RevokeScopePermissionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RevokeScopePermissionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
java.lang.String getScopeAddress();
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
com.google.protobuf.ByteString
getScopeAddressBytes();
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The grantId.
*/
java.lang.String getGrantId();
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
com.google.protobuf.ByteString
getGrantIdBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RevokeScopePermissionRequest}
*/
public static final class RevokeScopePermissionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RevokeScopePermissionRequest)
RevokeScopePermissionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RevokeScopePermissionRequest.newBuilder() to construct.
private RevokeScopePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RevokeScopePermissionRequest() {
scopeAddress_ = "";
granteeAddress_ = "";
grantId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RevokeScopePermissionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder.class);
}
public static final int SCOPE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object scopeAddress_ = "";
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
@java.lang.Override
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
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();
scopeAddress_ = s;
return s;
}
}
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANT_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The grantId.
*/
@java.lang.Override
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
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();
grantId_ = s;
return s;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = 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(scopeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, grantId_);
}
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(scopeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, grantId_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest other = (tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest) obj;
if (!getScopeAddress()
.equals(other.getScopeAddress())) return false;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getGrantId()
.equals(other.getGrantId())) 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) + SCOPE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getScopeAddress().hashCode();
hash = (37 * hash) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + GRANT_ID_FIELD_NUMBER;
hash = (53 * hash) + getGrantId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest 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(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest 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 tech.figure.objectstore.gateway.RevokeScopePermissionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RevokeScopePermissionRequest)
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scopeAddress_ = "";
granteeAddress_ = "";
grantId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest result = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scopeAddress_ = scopeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.grantId_ = grantId_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance()) return this;
if (!other.getScopeAddress().isEmpty()) {
scopeAddress_ = other.scopeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getGrantId().isEmpty()) {
grantId_ = other.grantId_;
bitField0_ |= 0x00000004;
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: {
scopeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
grantId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 scopeAddress_ = "";
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The scopeAddress.
*/
public java.lang.String getScopeAddress() {
java.lang.Object ref = scopeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scopeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return The bytes for scopeAddress.
*/
public com.google.protobuf.ByteString
getScopeAddressBytes() {
java.lang.Object ref = scopeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scopeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @param value The scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @return This builder for chaining.
*/
public Builder clearScopeAddress() {
scopeAddress_ = getDefaultInstance().getScopeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 scope address. All grants for this scope to the target grantee_address will be removed
*
*
* string scope_address = 1;
* @param value The bytes for scopeAddress to set.
* @return This builder for chaining.
*/
public Builder setScopeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scopeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* A bech32 account address. All grants that this account has received for the scope will be removed
*
*
* string grantee_address = 2;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The grantId.
*/
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
grantId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return The bytes for grantId.
*/
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @param value The grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
grantId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @return This builder for chaining.
*/
public Builder clearGrantId() {
grantId_ = getDefaultInstance().getGrantId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to target existing grant entries. If this value is omitted, all grants (including those labeled with grant ids) will be removed for this scope/account combo
*
*
* string grant_id = 3;
* @param value The bytes for grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
grantId_ = value;
bitField0_ |= 0x00000004;
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:tech.figure.objectstore.gateway.RevokeScopePermissionRequest)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RevokeScopePermissionRequest)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RevokeScopePermissionRequest 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RevokeScopePermissionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RevokeScopePermissionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return The request.
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getRequest();
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder getRequestOrBuilder();
/**
*
* The amount of grants that the request successfully revoked
*
*
* int32 revoked_grants_count = 2;
* @return The revokedGrantsCount.
*/
int getRevokedGrantsCount();
/**
*
* If true, the revoke was successfully processed. This indicates that the sender had the rights to make the request, even if zero grants were revoked based on the input
*
*
* bool revoke_accepted = 3;
* @return The revokeAccepted.
*/
boolean getRevokeAccepted();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RevokeScopePermissionResponse}
*/
public static final class RevokeScopePermissionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RevokeScopePermissionResponse)
RevokeScopePermissionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RevokeScopePermissionResponse.newBuilder() to construct.
private RevokeScopePermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RevokeScopePermissionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RevokeScopePermissionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.Builder.class);
}
public static final int REQUEST_FIELD_NUMBER = 1;
private tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return The request.
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getRequest() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance() : request_;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance() : request_;
}
public static final int REVOKED_GRANTS_COUNT_FIELD_NUMBER = 2;
private int revokedGrantsCount_ = 0;
/**
*
* The amount of grants that the request successfully revoked
*
*
* int32 revoked_grants_count = 2;
* @return The revokedGrantsCount.
*/
@java.lang.Override
public int getRevokedGrantsCount() {
return revokedGrantsCount_;
}
public static final int REVOKE_ACCEPTED_FIELD_NUMBER = 3;
private boolean revokeAccepted_ = false;
/**
*
* If true, the revoke was successfully processed. This indicates that the sender had the rights to make the request, even if zero grants were revoked based on the input
*
*
* bool revoke_accepted = 3;
* @return The revokeAccepted.
*/
@java.lang.Override
public boolean getRevokeAccepted() {
return revokeAccepted_;
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
if (revokedGrantsCount_ != 0) {
output.writeInt32(2, revokedGrantsCount_);
}
if (revokeAccepted_ != false) {
output.writeBool(3, revokeAccepted_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (revokedGrantsCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, revokedGrantsCount_);
}
if (revokeAccepted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, revokeAccepted_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse other = (tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (getRevokedGrantsCount()
!= other.getRevokedGrantsCount()) return false;
if (getRevokeAccepted()
!= other.getRevokeAccepted()) 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 (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (37 * hash) + REVOKED_GRANTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRevokedGrantsCount();
hash = (37 * hash) + REVOKE_ACCEPTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRevokeAccepted());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse 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(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse 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 tech.figure.objectstore.gateway.RevokeScopePermissionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RevokeScopePermissionResponse)
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.class, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
revokedGrantsCount_ = 0;
revokeAccepted_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse result = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.request_ = requestBuilder_ == null
? request_
: requestBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.revokedGrantsCount_ = revokedGrantsCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.revokeAccepted_ = revokeAccepted_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.getRevokedGrantsCount() != 0) {
setRevokedGrantsCount(other.getRevokedGrantsCount());
}
if (other.getRevokeAccepted() != false) {
setRevokeAccepted(other.getRevokeAccepted());
}
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(
getRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
revokedGrantsCount_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
revokeAccepted_ = input.readBool();
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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder> requestBuilder_;
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
* @return The request.
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public Builder setRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public Builder setRequest(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public Builder mergeRequest(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
request_ != null &&
request_ != tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance()) {
getRequestBuilder().mergeFrom(value);
} else {
request_ = value;
}
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
request_ = null;
if (requestBuilder_ != null) {
requestBuilder_.dispose();
requestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance() : request_;
}
}
/**
*
* The request that evoked this response
*
*
* .tech.figure.objectstore.gateway.RevokeScopePermissionRequest request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private int revokedGrantsCount_ ;
/**
*
* The amount of grants that the request successfully revoked
*
*
* int32 revoked_grants_count = 2;
* @return The revokedGrantsCount.
*/
@java.lang.Override
public int getRevokedGrantsCount() {
return revokedGrantsCount_;
}
/**
*
* The amount of grants that the request successfully revoked
*
*
* int32 revoked_grants_count = 2;
* @param value The revokedGrantsCount to set.
* @return This builder for chaining.
*/
public Builder setRevokedGrantsCount(int value) {
revokedGrantsCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The amount of grants that the request successfully revoked
*
*
* int32 revoked_grants_count = 2;
* @return This builder for chaining.
*/
public Builder clearRevokedGrantsCount() {
bitField0_ = (bitField0_ & ~0x00000002);
revokedGrantsCount_ = 0;
onChanged();
return this;
}
private boolean revokeAccepted_ ;
/**
*
* If true, the revoke was successfully processed. This indicates that the sender had the rights to make the request, even if zero grants were revoked based on the input
*
*
* bool revoke_accepted = 3;
* @return The revokeAccepted.
*/
@java.lang.Override
public boolean getRevokeAccepted() {
return revokeAccepted_;
}
/**
*
* If true, the revoke was successfully processed. This indicates that the sender had the rights to make the request, even if zero grants were revoked based on the input
*
*
* bool revoke_accepted = 3;
* @param value The revokeAccepted to set.
* @return This builder for chaining.
*/
public Builder setRevokeAccepted(boolean value) {
revokeAccepted_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* If true, the revoke was successfully processed. This indicates that the sender had the rights to make the request, even if zero grants were revoked based on the input
*
*
* bool revoke_accepted = 3;
* @return This builder for chaining.
*/
public Builder clearRevokeAccepted() {
bitField0_ = (bitField0_ & ~0x00000004);
revokeAccepted_ = false;
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:tech.figure.objectstore.gateway.RevokeScopePermissionResponse)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RevokeScopePermissionResponse)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RevokeScopePermissionResponse 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 tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllHashesObjectGrantTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.AllHashesObjectGrantTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant for the grantee
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.AllHashesObjectGrantTarget}
*/
public static final class AllHashesObjectGrantTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.AllHashesObjectGrantTarget)
AllHashesObjectGrantTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use AllHashesObjectGrantTarget.newBuilder() to construct.
private AllHashesObjectGrantTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AllHashesObjectGrantTarget() {
granteeAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AllHashesObjectGrantTarget();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.class, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder.class);
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = 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(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granteeAddress_);
}
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(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granteeAddress_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget other = (tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) obj;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) 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) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget 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(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies that all hashes submitted by the granter will receive an object grant for the grantee
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.AllHashesObjectGrantTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.AllHashesObjectGrantTarget)
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.class, tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
granteeAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget build() {
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget result = new tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget.getDefaultInstance()) return this;
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
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: {
granteeAddress_ = 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 granteeAddress_ = "";
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 account address. Adds an object grant from the granter to all objects submitted by the granter
*
*
* string grantee_address = 1;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = 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:tech.figure.objectstore.gateway.AllHashesObjectGrantTarget)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.AllHashesObjectGrantTarget)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AllHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.AllHashesObjectGrantTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpecifiedHashesObjectGrantTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return A list containing the targetHashes.
*/
java.util.List
getTargetHashesList();
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return The count of targetHashes.
*/
int getTargetHashesCount();
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the element to return.
* @return The targetHashes at the given index.
*/
java.lang.String getTargetHashes(int index);
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the value to return.
* @return The bytes of the targetHashes at the given index.
*/
com.google.protobuf.ByteString
getTargetHashesBytes(int index);
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget}
*/
public static final class SpecifiedHashesObjectGrantTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget)
SpecifiedHashesObjectGrantTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpecifiedHashesObjectGrantTarget.newBuilder() to construct.
private SpecifiedHashesObjectGrantTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpecifiedHashesObjectGrantTarget() {
granteeAddress_ = "";
targetHashes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpecifiedHashesObjectGrantTarget();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.class, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder.class);
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_HASHES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList targetHashes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return A list containing the targetHashes.
*/
public com.google.protobuf.ProtocolStringList
getTargetHashesList() {
return targetHashes_;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return The count of targetHashes.
*/
public int getTargetHashesCount() {
return targetHashes_.size();
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the element to return.
* @return The targetHashes at the given index.
*/
public java.lang.String getTargetHashes(int index) {
return targetHashes_.get(index);
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the value to return.
* @return The bytes of the targetHashes at the given index.
*/
public com.google.protobuf.ByteString
getTargetHashesBytes(int index) {
return targetHashes_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granteeAddress_);
}
for (int i = 0; i < targetHashes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetHashes_.getRaw(i));
}
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(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granteeAddress_);
}
{
int dataSize = 0;
for (int i = 0; i < targetHashes_.size(); i++) {
dataSize += computeStringSizeNoTag(targetHashes_.getRaw(i));
}
size += dataSize;
size += 1 * getTargetHashesList().size();
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget other = (tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) obj;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getTargetHashesList()
.equals(other.getTargetHashesList())) 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) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
if (getTargetHashesCount() > 0) {
hash = (37 * hash) + TARGET_HASHES_FIELD_NUMBER;
hash = (53 * hash) + getTargetHashesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget 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(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specifies that all target hashes submitted by the granter will receive an object grant for the grantee
*
*
* Protobuf type {@code tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget)
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.class, tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
granteeAddress_ = "";
targetHashes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget build() {
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget result = new tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
targetHashes_.makeImmutable();
result.targetHashes_ = targetHashes_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget.getDefaultInstance()) return this;
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.targetHashes_.isEmpty()) {
if (targetHashes_.isEmpty()) {
targetHashes_ = other.targetHashes_;
bitField0_ |= 0x00000002;
} else {
ensureTargetHashesIsMutable();
targetHashes_.addAll(other.targetHashes_);
}
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: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureTargetHashesIsMutable();
targetHashes_.add(s);
break;
} // case 18
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 granteeAddress_ = "";
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 account address. Adds an object grant from the granter to the target hashes
*
*
* string grantee_address = 1;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList targetHashes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTargetHashesIsMutable() {
if (!targetHashes_.isModifiable()) {
targetHashes_ = new com.google.protobuf.LazyStringArrayList(targetHashes_);
}
bitField0_ |= 0x00000002;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return A list containing the targetHashes.
*/
public com.google.protobuf.ProtocolStringList
getTargetHashesList() {
targetHashes_.makeImmutable();
return targetHashes_;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return The count of targetHashes.
*/
public int getTargetHashesCount() {
return targetHashes_.size();
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the element to return.
* @return The targetHashes at the given index.
*/
public java.lang.String getTargetHashes(int index) {
return targetHashes_.get(index);
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index of the value to return.
* @return The bytes of the targetHashes at the given index.
*/
public com.google.protobuf.ByteString
getTargetHashesBytes(int index) {
return targetHashes_.getByteString(index);
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param index The index to set the value at.
* @param value The targetHashes to set.
* @return This builder for chaining.
*/
public Builder setTargetHashes(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTargetHashesIsMutable();
targetHashes_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param value The targetHashes to add.
* @return This builder for chaining.
*/
public Builder addTargetHashes(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTargetHashesIsMutable();
targetHashes_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param values The targetHashes to add.
* @return This builder for chaining.
*/
public Builder addAllTargetHashes(
java.lang.Iterable values) {
ensureTargetHashesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targetHashes_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @return This builder for chaining.
*/
public Builder clearTargetHashes() {
targetHashes_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* All hashes for which to grant permissions
*
*
* repeated string target_hashes = 2;
* @param value The bytes of the targetHashes to add.
* @return This builder for chaining.
*/
public Builder addTargetHashesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTargetHashesIsMutable();
targetHashes_.add(value);
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.SpecifiedHashesObjectGrantTarget)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpecifiedHashesObjectGrantTarget 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 tech.figure.objectstore.gateway.GatewayOuterClass.SpecifiedHashesObjectGrantTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ObjectWithMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.ObjectWithMeta)
com.google.protobuf.MessageOrBuilder {
/**
* bytes object_bytes = 1;
* @return The objectBytes.
*/
com.google.protobuf.ByteString getObjectBytes();
/**
*
* optional type
*
*
* string type = 2;
* @return The type.
*/
java.lang.String getType();
/**
*
* optional type
*
*
* string type = 2;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.ObjectWithMeta}
*/
public static final class ObjectWithMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.ObjectWithMeta)
ObjectWithMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectWithMeta.newBuilder() to construct.
private ObjectWithMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ObjectWithMeta() {
objectBytes_ = com.google.protobuf.ByteString.EMPTY;
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ObjectWithMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.class, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder.class);
}
public static final int OBJECT_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString objectBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes object_bytes = 1;
* @return The objectBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectBytes() {
return objectBytes_;
}
public static final int TYPE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
* optional type
*
*
* string type = 2;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* optional type
*
*
* string type = 2;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@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 (!objectBytes_.isEmpty()) {
output.writeBytes(1, objectBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!objectBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, objectBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta other = (tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta) obj;
if (!getObjectBytes()
.equals(other.getObjectBytes())) return false;
if (!getType()
.equals(other.getType())) 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) + OBJECT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getObjectBytes().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta 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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta 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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta 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(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta 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 tech.figure.objectstore.gateway.ObjectWithMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.ObjectWithMeta)
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.class, tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
objectBytes_ = com.google.protobuf.ByteString.EMPTY;
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta build() {
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta result = new tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.objectBytes_ = objectBytes_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta.getDefaultInstance()) return this;
if (other.getObjectBytes() != com.google.protobuf.ByteString.EMPTY) {
setObjectBytes(other.getObjectBytes());
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000002;
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: {
objectBytes_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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.ByteString objectBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes object_bytes = 1;
* @return The objectBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectBytes() {
return objectBytes_;
}
/**
* bytes object_bytes = 1;
* @param value The objectBytes to set.
* @return This builder for chaining.
*/
public Builder setObjectBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
objectBytes_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes object_bytes = 1;
* @return This builder for chaining.
*/
public Builder clearObjectBytes() {
bitField0_ = (bitField0_ & ~0x00000001);
objectBytes_ = getDefaultInstance().getObjectBytes();
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* optional type
*
*
* string type = 2;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional type
*
*
* string type = 2;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional type
*
*
* string type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* optional type
*
*
* string type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* optional type
*
*
* string type = 2;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.ObjectWithMeta)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.ObjectWithMeta)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectWithMeta 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 tech.figure.objectstore.gateway.GatewayOuterClass.ObjectWithMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScopeGranteeOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.ScopeGrantee)
com.google.protobuf.MessageOrBuilder {
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
java.lang.String getGranteeAddress();
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
com.google.protobuf.ByteString
getGranteeAddressBytes();
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The grantId.
*/
java.lang.String getGrantId();
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The bytes for grantId.
*/
com.google.protobuf.ByteString
getGrantIdBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.ScopeGrantee}
*/
public static final class ScopeGrantee extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.ScopeGrantee)
ScopeGranteeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScopeGrantee.newBuilder() to construct.
private ScopeGrantee(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScopeGrantee() {
granteeAddress_ = "";
grantId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScopeGrantee();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ScopeGrantee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.class, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder.class);
}
public static final int GRANTEE_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object granteeAddress_ = "";
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
@java.lang.Override
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
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();
granteeAddress_ = s;
return s;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANT_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The grantId.
*/
@java.lang.Override
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
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();
grantId_ = s;
return s;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The bytes for grantId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = 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(granteeAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantId_);
}
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(granteeAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granteeAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grantId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, grantId_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee other = (tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee) obj;
if (!getGranteeAddress()
.equals(other.getGranteeAddress())) return false;
if (!getGrantId()
.equals(other.getGrantId())) 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) + GRANTEE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getGranteeAddress().hashCode();
hash = (37 * hash) + GRANT_ID_FIELD_NUMBER;
hash = (53 * hash) + getGrantId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee 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 tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee 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 tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee 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(tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee 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 tech.figure.objectstore.gateway.ScopeGrantee}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.ScopeGrantee)
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGranteeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ScopeGrantee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.class, tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
granteeAddress_ = "";
grantId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee build() {
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee result = new tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.granteeAddress_ = granteeAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.grantId_ = grantId_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee.getDefaultInstance()) return this;
if (!other.getGranteeAddress().isEmpty()) {
granteeAddress_ = other.granteeAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getGrantId().isEmpty()) {
grantId_ = other.grantId_;
bitField0_ |= 0x00000002;
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: {
granteeAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
grantId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 granteeAddress_ = "";
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The granteeAddress.
*/
public java.lang.String getGranteeAddress() {
java.lang.Object ref = granteeAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
granteeAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return The bytes for granteeAddress.
*/
public com.google.protobuf.ByteString
getGranteeAddressBytes() {
java.lang.Object ref = granteeAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
granteeAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @param value The granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @return This builder for chaining.
*/
public Builder clearGranteeAddress() {
granteeAddress_ = getDefaultInstance().getGranteeAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A bech32 account address for which to grant read access to the scope's records
*
*
* string grantee_address = 1;
* @param value The bytes for granteeAddress to set.
* @return This builder for chaining.
*/
public Builder setGranteeAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
granteeAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object grantId_ = "";
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The grantId.
*/
public java.lang.String getGrantId() {
java.lang.Object ref = grantId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
grantId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return The bytes for grantId.
*/
public com.google.protobuf.ByteString
getGrantIdBytes() {
java.lang.Object ref = grantId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
grantId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @param value The grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
grantId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @return This builder for chaining.
*/
public Builder clearGrantId() {
grantId_ = getDefaultInstance().getGrantId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* An optional parameter that specifies a unique identifier by which to label the grant entry that will be created
*
*
* string grant_id = 2;
* @param value The bytes for grantId to set.
* @return This builder for chaining.
*/
public Builder setGrantIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
grantId_ = value;
bitField0_ |= 0x00000002;
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:tech.figure.objectstore.gateway.ScopeGrantee)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.ScopeGrantee)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScopeGrantee 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 tech.figure.objectstore.gateway.GatewayOuterClass.ScopeGrantee getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.Record)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
java.util.List
getInputsList();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getInputs(int index);
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
int getInputsCount();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getInputsOrBuilderList();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getInputsOrBuilder(
int index);
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
java.util.List
getOutputsList();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getOutputs(int index);
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
int getOutputsCount();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getOutputsOrBuilderList();
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getOutputsOrBuilder(
int index);
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.Record}
*/
public static final class Record extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.Record)
RecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use Record.newBuilder() to construct.
private Record(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Record() {
name_ = "";
inputs_ = java.util.Collections.emptyList();
outputs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Record();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.Record.class, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List inputs_;
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
@java.lang.Override
public java.util.List getInputsList() {
return inputs_;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
@java.lang.Override
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getInputsOrBuilderList() {
return inputs_;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
@java.lang.Override
public int getInputsCount() {
return inputs_.size();
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getInputs(int index) {
return inputs_.get(index);
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int OUTPUTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List outputs_;
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
@java.lang.Override
public java.util.List getOutputsList() {
return outputs_;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
@java.lang.Override
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getOutputsOrBuilderList() {
return outputs_;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
@java.lang.Override
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getOutputsOrBuilder(
int index) {
return outputs_.get(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(2, inputs_.get(i));
}
for (int i = 0; i < outputs_.size(); i++) {
output.writeMessage(3, outputs_.get(i));
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, inputs_.get(i));
}
for (int i = 0; i < outputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, outputs_.get(i));
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.Record)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.Record other = (tech.figure.objectstore.gateway.GatewayOuterClass.Record) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (!getOutputsList()
.equals(other.getOutputsList())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
if (getOutputsCount() > 0) {
hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + getOutputsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record 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 tech.figure.objectstore.gateway.GatewayOuterClass.Record parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record 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 tech.figure.objectstore.gateway.GatewayOuterClass.Record parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record 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(tech.figure.objectstore.gateway.GatewayOuterClass.Record 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 tech.figure.objectstore.gateway.Record}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.Record)
tech.figure.objectstore.gateway.GatewayOuterClass.RecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.Record.class, tech.figure.objectstore.gateway.GatewayOuterClass.Record.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.Record.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
} else {
inputs_ = null;
inputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
} else {
outputs_ = null;
outputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_Record_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.Record getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.Record.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.Record build() {
tech.figure.objectstore.gateway.GatewayOuterClass.Record result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.Record buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.Record result = new tech.figure.objectstore.gateway.GatewayOuterClass.Record(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.figure.objectstore.gateway.GatewayOuterClass.Record result) {
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (outputsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.outputs_ = outputs_;
} else {
result.outputs_ = outputsBuilder_.build();
}
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.Record result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.Record) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.Record)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.Record other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.Record.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000002);
inputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputsFieldBuilder() : null;
} else {
inputsBuilder_.addAllMessages(other.inputs_);
}
}
}
if (outputsBuilder_ == null) {
if (!other.outputs_.isEmpty()) {
if (outputs_.isEmpty()) {
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOutputsIsMutable();
outputs_.addAll(other.outputs_);
}
onChanged();
}
} else {
if (!other.outputs_.isEmpty()) {
if (outputsBuilder_.isEmpty()) {
outputsBuilder_.dispose();
outputsBuilder_ = null;
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000004);
outputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputsFieldBuilder() : null;
} else {
outputsBuilder_.addAllMessages(other.outputs_);
}
}
}
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject m =
input.readMessage(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.parser(),
extensionRegistry);
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(m);
} else {
inputsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject m =
input.readMessage(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.parser(),
extensionRegistry);
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(m);
} else {
outputsBuilder_.addMessage(m);
}
break;
} // case 26
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 name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder> inputsBuilder_;
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public java.util.List getInputsList() {
if (inputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputs_);
} else {
return inputsBuilder_.getMessageList();
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getInputs(int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index);
} else {
return inputsBuilder_.getMessage(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder setInputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.set(index, value);
onChanged();
} else {
inputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder setInputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.set(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder addInputs(tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(value);
onChanged();
} else {
inputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder addInputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(index, value);
onChanged();
} else {
inputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder addInputs(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder addInputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder addAllInputs(
java.lang.Iterable extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject> values) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputs_);
onChanged();
} else {
inputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public Builder removeInputs(int index) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.remove(index);
onChanged();
} else {
inputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getInputsOrBuilder(
int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index); } else {
return inputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getInputsOrBuilderList() {
if (inputsBuilder_ != null) {
return inputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputs_);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject inputs = 2;
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>(
inputs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private java.util.List outputs_ =
java.util.Collections.emptyList();
private void ensureOutputsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
outputs_ = new java.util.ArrayList(outputs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder> outputsBuilder_;
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public java.util.List getOutputsList() {
if (outputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(outputs_);
} else {
return outputsBuilder_.getMessageList();
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public int getOutputsCount() {
if (outputsBuilder_ == null) {
return outputs_.size();
} else {
return outputsBuilder_.getCount();
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getOutputs(int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index);
} else {
return outputsBuilder_.getMessage(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder setOutputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.set(index, value);
onChanged();
} else {
outputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder setOutputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.set(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder addOutputs(tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(value);
onChanged();
} else {
outputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder addOutputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(index, value);
onChanged();
} else {
outputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder addOutputs(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder addOutputs(
int index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder addAllOutputs(
java.lang.Iterable extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject> values) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputs_);
onChanged();
} else {
outputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder clearOutputs() {
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
outputsBuilder_.clear();
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public Builder removeOutputs(int index) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.remove(index);
onChanged();
} else {
outputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder getOutputsBuilder(
int index) {
return getOutputsFieldBuilder().getBuilder(index);
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder getOutputsOrBuilder(
int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index); } else {
return outputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public java.util.List extends tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getOutputsOrBuilderList() {
if (outputsBuilder_ != null) {
return outputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputs_);
}
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder addOutputsBuilder() {
return getOutputsFieldBuilder().addBuilder(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder addOutputsBuilder(
int index) {
return getOutputsFieldBuilder().addBuilder(
index, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance());
}
/**
* repeated .tech.figure.objectstore.gateway.RecordObject outputs = 3;
*/
public java.util.List
getOutputsBuilderList() {
return getOutputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>
getOutputsFieldBuilder() {
if (outputsBuilder_ == null) {
outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder>(
outputs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
outputs_ = null;
}
return outputsBuilder_;
}
@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:tech.figure.objectstore.gateway.Record)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.Record)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.Record DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.Record();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.Record getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Record 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 tech.figure.objectstore.gateway.GatewayOuterClass.Record getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecordObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:tech.figure.objectstore.gateway.RecordObject)
com.google.protobuf.MessageOrBuilder {
/**
* string hash = 1;
* @return The hash.
*/
java.lang.String getHash();
/**
* string hash = 1;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* string type = 2;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 2;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* bytes object_bytes = 3;
* @return The objectBytes.
*/
com.google.protobuf.ByteString getObjectBytes();
}
/**
* Protobuf type {@code tech.figure.objectstore.gateway.RecordObject}
*/
public static final class RecordObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tech.figure.objectstore.gateway.RecordObject)
RecordObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecordObject.newBuilder() to construct.
private RecordObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecordObject() {
hash_ = "";
type_ = "";
objectBytes_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecordObject();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RecordObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.class, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object hash_ = "";
/**
* string hash = 1;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
* string hash = 1;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
* string type = 2;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
* string type = 2;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OBJECT_BYTES_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString objectBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes object_bytes = 3;
* @return The objectBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectBytes() {
return objectBytes_;
}
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(hash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
if (!objectBytes_.isEmpty()) {
output.writeBytes(3, objectBytes_);
}
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(hash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
if (!objectBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, objectBytes_);
}
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 tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject)) {
return super.equals(obj);
}
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject other = (tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getObjectBytes()
.equals(other.getObjectBytes())) 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) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + OBJECT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getObjectBytes().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject 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 tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject 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 tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject 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(tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject 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 tech.figure.objectstore.gateway.RecordObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tech.figure.objectstore.gateway.RecordObject)
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RecordObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.class, tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.Builder.class);
}
// Construct using tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = "";
type_ = "";
objectBytes_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getDefaultInstanceForType() {
return tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance();
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject build() {
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject buildPartial() {
tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject result = new tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.objectBytes_ = objectBytes_;
}
}
@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 tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject) {
return mergeFrom((tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject other) {
if (other == tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getObjectBytes() != com.google.protobuf.ByteString.EMPTY) {
setObjectBytes(other.getObjectBytes());
}
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: {
hash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
objectBytes_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
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 hash_ = "";
/**
* string hash = 1;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 1;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string hash = 1;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 2;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 2;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string type = 2;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString objectBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes object_bytes = 3;
* @return The objectBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectBytes() {
return objectBytes_;
}
/**
* bytes object_bytes = 3;
* @param value The objectBytes to set.
* @return This builder for chaining.
*/
public Builder setObjectBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
objectBytes_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes object_bytes = 3;
* @return This builder for chaining.
*/
public Builder clearObjectBytes() {
bitField0_ = (bitField0_ & ~0x00000004);
objectBytes_ = getDefaultInstance().getObjectBytes();
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:tech.figure.objectstore.gateway.RecordObject)
}
// @@protoc_insertion_point(class_scope:tech.figure.objectstore.gateway.RecordObject)
private static final tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject();
}
public static tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecordObject 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 tech.figure.objectstore.gateway.GatewayOuterClass.RecordObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_PutObjectRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_PutObjectResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_ScopeGrantee_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_Record_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_Record_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tech_figure_objectstore_gateway_RecordObject_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-tech/figure/objectstore/gateway/gatewa" +
"y.proto\022\037tech.figure.objectstore.gateway" +
"\032\020public_key.proto\"D\n\022FetchObjectRequest" +
"\022\025\n\rscope_address\030\001 \001(\t\022\027\n\017granter_addre" +
"ss\030\002 \001(\t\"a\n\023FetchObjectResponse\022\020\n\010scope" +
"_id\030\001 \001(\t\0228\n\007records\030\002 \003(\0132\'.tech.figure" +
".objectstore.gateway.Record\"\260\001\n\020PutObjec" +
"tRequest\022?\n\006object\030\001 \001(\0132/.tech.figure.o" +
"bjectstore.gateway.ObjectWithMeta\022@\n\030add" +
"itional_audience_keys\030\002 \003(\0132\036.io.provena" +
"nce.scope.PublicKey\022\031\n\021use_requester_key" +
"\030\003 \001(\010\"!\n\021PutObjectResponse\022\014\n\004hash\030\001 \001(" +
"\t\"F\n\035RegisterExistingObjectRequest\022\014\n\004ha" +
"sh\030\001 \001(\t\022\027\n\017grantee_address\030\002 \003(\t\"q\n\036Reg" +
"isterExistingObjectResponse\022O\n\007request\030\001" +
" \001(\0132>.tech.figure.objectstore.gateway.R" +
"egisterExistingObjectRequest\"(\n\030FetchObj" +
"ectByHashRequest\022\014\n\004hash\030\001 \001(\t\"\\\n\031FetchO" +
"bjectByHashResponse\022?\n\006object\030\001 \001(\0132/.te" +
"ch.figure.objectstore.gateway.ObjectWith" +
"Meta\"F\n\035GrantObjectPermissionsRequest\022\027\n" +
"\017grantee_address\030\001 \001(\t\022\014\n\004hash\030\002 \001(\t\"G\n\036" +
"GrantObjectPermissionsResponse\022\027\n\017grante" +
"e_address\030\001 \001(\t\022\014\n\004hash\030\002 \001(\t\"\346\001\n\"BatchG" +
"rantObjectPermissionsRequest\022Q\n\nall_hash" +
"es\030\001 \001(\0132;.tech.figure.objectstore.gatew" +
"ay.AllHashesObjectGrantTargetH\000\022]\n\020speci" +
"fied_hashes\030\002 \001(\0132A.tech.figure.objectst" +
"ore.gateway.SpecifiedHashesObjectGrantTa" +
"rgetH\000B\016\n\014grant_target\"\232\001\n#BatchGrantObj" +
"ectPermissionsResponse\022\014\n\004hash\030\001 \001(\t\022\027\n\017" +
"granter_address\030\002 \001(\t\022\027\n\017grantee_address" +
"\030\003 \001(\t\022\024\n\014grant_number\030\004 \001(\005\022\035\n\025total_gr" +
"ants_expected\030\005 \001(\005\"G\n\036RevokeObjectPermi" +
"ssionsRequest\022\014\n\004hash\030\001 \001(\t\022\027\n\017grantee_a" +
"ddress\030\002 \003(\t\"s\n\037RevokeObjectPermissionsR" +
"esponse\022P\n\007request\030\001 \001(\0132?.tech.figure.o" +
"bjectstore.gateway.RevokeObjectPermissio" +
"nsRequest\"_\n\033GrantScopePermissionRequest" +
"\022\025\n\rscope_address\030\001 \001(\t\022\027\n\017grantee_addre" +
"ss\030\002 \001(\t\022\020\n\010grant_id\030\003 \001(\t\"\236\001\n\034GrantScop" +
"ePermissionResponse\022M\n\007request\030\001 \001(\0132<.t" +
"ech.figure.objectstore.gateway.GrantScop" +
"ePermissionRequest\022\027\n\017granter_address\030\002 " +
"\001(\t\022\026\n\016grant_accepted\030\003 \001(\010\"z\n BatchGran" +
"tScopePermissionRequest\022\025\n\rscope_address" +
"\030\001 \001(\t\022?\n\010grantees\030\002 \003(\0132-.tech.figure.o" +
"bjectstore.gateway.ScopeGrantee\"\317\001\n!Batc" +
"hGrantScopePermissionResponse\022R\n\007request" +
"\030\001 \001(\0132A.tech.figure.objectstore.gateway" +
".BatchGrantScopePermissionRequest\022V\n\017gra" +
"nt_responses\030\002 \003(\0132=.tech.figure.objects" +
"tore.gateway.GrantScopePermissionRespons" +
"e\"`\n\034RevokeScopePermissionRequest\022\025\n\rsco" +
"pe_address\030\001 \001(\t\022\027\n\017grantee_address\030\002 \001(" +
"\t\022\020\n\010grant_id\030\003 \001(\t\"\246\001\n\035RevokeScopePermi" +
"ssionResponse\022N\n\007request\030\001 \001(\0132=.tech.fi" +
"gure.objectstore.gateway.RevokeScopePerm" +
"issionRequest\022\034\n\024revoked_grants_count\030\002 " +
"\001(\005\022\027\n\017revoke_accepted\030\003 \001(\010\"5\n\032AllHashe" +
"sObjectGrantTarget\022\027\n\017grantee_address\030\001 " +
"\001(\t\"R\n SpecifiedHashesObjectGrantTarget\022" +
"\027\n\017grantee_address\030\001 \001(\t\022\025\n\rtarget_hashe" +
"s\030\002 \003(\t\"4\n\016ObjectWithMeta\022\024\n\014object_byte" +
"s\030\001 \001(\014\022\014\n\004type\030\002 \001(\t\"9\n\014ScopeGrantee\022\027\n" +
"\017grantee_address\030\001 \001(\t\022\020\n\010grant_id\030\002 \001(\t" +
"\"\225\001\n\006Record\022\014\n\004name\030\001 \001(\t\022=\n\006inputs\030\002 \003(" +
"\0132-.tech.figure.objectstore.gateway.Reco" +
"rdObject\022>\n\007outputs\030\003 \003(\0132-.tech.figure." +
"objectstore.gateway.RecordObject\"@\n\014Reco" +
"rdObject\022\014\n\004hash\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\024\n\014" +
"object_bytes\030\003 \001(\0142\360\013\n\007Gateway\022z\n\013FetchO" +
"bject\0223.tech.figure.objectstore.gateway." +
"FetchObjectRequest\0324.tech.figure.objects" +
"tore.gateway.FetchObjectResponse\"\000\022t\n\tPu" +
"tObject\0221.tech.figure.objectstore.gatewa" +
"y.PutObjectRequest\0322.tech.figure.objects" +
"tore.gateway.PutObjectResponse\"\000\022\233\001\n\026Reg" +
"isterExistingObject\022>.tech.figure.object" +
"store.gateway.RegisterExistingObjectRequ" +
"est\032?.tech.figure.objectstore.gateway.Re" +
"gisterExistingObjectResponse\"\000\022\214\001\n\021Fetch" +
"ObjectByHash\0229.tech.figure.objectstore.g" +
"ateway.FetchObjectByHashRequest\032:.tech.f" +
"igure.objectstore.gateway.FetchObjectByH" +
"ashResponse\"\000\022\233\001\n\026GrantObjectPermissions" +
"\022>.tech.figure.objectstore.gateway.Grant" +
"ObjectPermissionsRequest\032?.tech.figure.o" +
"bjectstore.gateway.GrantObjectPermission" +
"sResponse\"\000\022\254\001\n\033BatchGrantObjectPermissi" +
"ons\022C.tech.figure.objectstore.gateway.Ba" +
"tchGrantObjectPermissionsRequest\032D.tech." +
"figure.objectstore.gateway.BatchGrantObj" +
"ectPermissionsResponse\"\0000\001\022\236\001\n\027RevokeObj" +
"ectPermissions\022?.tech.figure.objectstore" +
".gateway.RevokeObjectPermissionsRequest\032" +
"@.tech.figure.objectstore.gateway.Revoke" +
"ObjectPermissionsResponse\"\000\022\225\001\n\024GrantSco" +
"pePermission\022<.tech.figure.objectstore.g" +
"ateway.GrantScopePermissionRequest\032=.tec" +
"h.figure.objectstore.gateway.GrantScopeP" +
"ermissionResponse\"\000\022\244\001\n\031BatchGrantScopeP" +
"ermission\022A.tech.figure.objectstore.gate" +
"way.BatchGrantScopePermissionRequest\032B.t" +
"ech.figure.objectstore.gateway.BatchGran" +
"tScopePermissionResponse\"\000\022\230\001\n\025RevokeSco" +
"pePermission\022=.tech.figure.objectstore.g" +
"ateway.RevokeScopePermissionRequest\032>.te" +
"ch.figure.objectstore.gateway.RevokeScop" +
"ePermissionResponse\"\000b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
io.provenance.scope.proto.PK.getDescriptor(),
});
internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_FetchObjectRequest_descriptor,
new java.lang.String[] { "ScopeAddress", "GranterAddress", });
internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_FetchObjectResponse_descriptor,
new java.lang.String[] { "ScopeId", "Records", });
internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tech_figure_objectstore_gateway_PutObjectRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_PutObjectRequest_descriptor,
new java.lang.String[] { "Object", "AdditionalAudienceKeys", "UseRequesterKey", });
internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tech_figure_objectstore_gateway_PutObjectResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_PutObjectResponse_descriptor,
new java.lang.String[] { "Hash", });
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectRequest_descriptor,
new java.lang.String[] { "Hash", "GranteeAddress", });
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RegisterExistingObjectResponse_descriptor,
new java.lang.String[] { "Request", });
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashRequest_descriptor,
new java.lang.String[] { "Hash", });
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_FetchObjectByHashResponse_descriptor,
new java.lang.String[] { "Object", });
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsRequest_descriptor,
new java.lang.String[] { "GranteeAddress", "Hash", });
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_GrantObjectPermissionsResponse_descriptor,
new java.lang.String[] { "GranteeAddress", "Hash", });
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsRequest_descriptor,
new java.lang.String[] { "AllHashes", "SpecifiedHashes", "GrantTarget", });
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_BatchGrantObjectPermissionsResponse_descriptor,
new java.lang.String[] { "Hash", "GranterAddress", "GranteeAddress", "GrantNumber", "TotalGrantsExpected", });
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsRequest_descriptor,
new java.lang.String[] { "Hash", "GranteeAddress", });
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RevokeObjectPermissionsResponse_descriptor,
new java.lang.String[] { "Request", });
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionRequest_descriptor,
new java.lang.String[] { "ScopeAddress", "GranteeAddress", "GrantId", });
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_GrantScopePermissionResponse_descriptor,
new java.lang.String[] { "Request", "GranterAddress", "GrantAccepted", });
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionRequest_descriptor,
new java.lang.String[] { "ScopeAddress", "Grantees", });
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_BatchGrantScopePermissionResponse_descriptor,
new java.lang.String[] { "Request", "GrantResponses", });
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionRequest_descriptor,
new java.lang.String[] { "ScopeAddress", "GranteeAddress", "GrantId", });
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RevokeScopePermissionResponse_descriptor,
new java.lang.String[] { "Request", "RevokedGrantsCount", "RevokeAccepted", });
internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_AllHashesObjectGrantTarget_descriptor,
new java.lang.String[] { "GranteeAddress", });
internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_SpecifiedHashesObjectGrantTarget_descriptor,
new java.lang.String[] { "GranteeAddress", "TargetHashes", });
internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_ObjectWithMeta_descriptor,
new java.lang.String[] { "ObjectBytes", "Type", });
internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_tech_figure_objectstore_gateway_ScopeGrantee_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_ScopeGrantee_descriptor,
new java.lang.String[] { "GranteeAddress", "GrantId", });
internal_static_tech_figure_objectstore_gateway_Record_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_tech_figure_objectstore_gateway_Record_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_Record_descriptor,
new java.lang.String[] { "Name", "Inputs", "Outputs", });
internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_tech_figure_objectstore_gateway_RecordObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tech_figure_objectstore_gateway_RecordObject_descriptor,
new java.lang.String[] { "Hash", "Type", "ObjectBytes", });
io.provenance.scope.proto.PK.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}