io.github.navi_cloud.shared.storage.StorageMessage Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: StorageService/StorageMessage.proto
package io.github.navi_cloud.shared.storage;
public final class StorageMessage {
private StorageMessage() {}
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 FindInsideFilesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.github.navi_cloud.shared.storage.FindInsideFilesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string userEmail = 1;
*/
java.lang.String getUserEmail();
/**
* string userEmail = 1;
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* string targetFolder = 2;
*/
java.lang.String getTargetFolder();
/**
* string targetFolder = 2;
*/
com.google.protobuf.ByteString
getTargetFolderBytes();
}
/**
*
* Messgae for request files in the folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.FindInsideFilesRequest}
*/
public static final class FindInsideFilesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.github.navi_cloud.shared.storage.FindInsideFilesRequest)
FindInsideFilesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FindInsideFilesRequest.newBuilder() to construct.
private FindInsideFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FindInsideFilesRequest() {
userEmail_ = "";
targetFolder_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FindInsideFilesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
targetFolder_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.Builder.class);
}
public static final int USEREMAIL_FIELD_NUMBER = 1;
private volatile java.lang.Object userEmail_;
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGETFOLDER_FIELD_NUMBER = 2;
private volatile java.lang.Object targetFolder_;
/**
* string targetFolder = 2;
*/
public java.lang.String getTargetFolder() {
java.lang.Object ref = targetFolder_;
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();
targetFolder_ = s;
return s;
}
}
/**
* string targetFolder = 2;
*/
public com.google.protobuf.ByteString
getTargetFolderBytes() {
java.lang.Object ref = targetFolder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetFolder_ = 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 (!getUserEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmail_);
}
if (!getTargetFolderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetFolder_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userEmail_);
}
if (!getTargetFolderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetFolder_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest)) {
return super.equals(obj);
}
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest other = (io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest) obj;
boolean result = true;
result = result && getUserEmail()
.equals(other.getUserEmail());
result = result && getTargetFolder()
.equals(other.getTargetFolder());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USEREMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (37 * hash) + TARGETFOLDER_FIELD_NUMBER;
hash = (53 * hash) + getTargetFolder().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest 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;
}
/**
*
* Messgae for request files in the folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.FindInsideFilesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.github.navi_cloud.shared.storage.FindInsideFilesRequest)
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.Builder.class);
}
// Construct using io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
userEmail_ = "";
targetFolder_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest getDefaultInstanceForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.getDefaultInstance();
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest build() {
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest buildPartial() {
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest result = new io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest(this);
result.userEmail_ = userEmail_;
result.targetFolder_ = targetFolder_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest) {
return mergeFrom((io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest other) {
if (other == io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.getDefaultInstance()) return this;
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (!other.getTargetFolder().isEmpty()) {
targetFolder_ = other.targetFolder_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userEmail_ = "";
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string userEmail = 1;
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object targetFolder_ = "";
/**
* string targetFolder = 2;
*/
public java.lang.String getTargetFolder() {
java.lang.Object ref = targetFolder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetFolder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string targetFolder = 2;
*/
public com.google.protobuf.ByteString
getTargetFolderBytes() {
java.lang.Object ref = targetFolder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetFolder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string targetFolder = 2;
*/
public Builder setTargetFolder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetFolder_ = value;
onChanged();
return this;
}
/**
* string targetFolder = 2;
*/
public Builder clearTargetFolder() {
targetFolder_ = getDefaultInstance().getTargetFolder();
onChanged();
return this;
}
/**
* string targetFolder = 2;
*/
public Builder setTargetFolderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetFolder_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.github.navi_cloud.shared.storage.FindInsideFilesRequest)
}
// @@protoc_insertion_point(class_scope:io.github.navi_cloud.shared.storage.FindInsideFilesRequest)
private static final io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest();
}
public static io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FindInsideFilesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FindInsideFilesRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateRootFolderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.github.navi_cloud.shared.storage.CreateRootFolderRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
java.lang.String getUserEmail();
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
com.google.protobuf.ByteString
getUserEmailBytes();
}
/**
*
* Message For requesting root-folder creation
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.CreateRootFolderRequest}
*/
public static final class CreateRootFolderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.github.navi_cloud.shared.storage.CreateRootFolderRequest)
CreateRootFolderRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateRootFolderRequest.newBuilder() to construct.
private CreateRootFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateRootFolderRequest() {
userEmail_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateRootFolderRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.Builder.class);
}
public static final int USEREMAIL_FIELD_NUMBER = 1;
private volatile java.lang.Object userEmail_;
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = 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 (!getUserEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmail_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userEmail_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest)) {
return super.equals(obj);
}
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest other = (io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest) obj;
boolean result = true;
result = result && getUserEmail()
.equals(other.getUserEmail());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USEREMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest 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;
}
/**
*
* Message For requesting root-folder creation
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.CreateRootFolderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.github.navi_cloud.shared.storage.CreateRootFolderRequest)
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.Builder.class);
}
// Construct using io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
userEmail_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest getDefaultInstanceForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.getDefaultInstance();
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest build() {
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest buildPartial() {
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest result = new io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest(this);
result.userEmail_ = userEmail_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest) {
return mergeFrom((io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest other) {
if (other == io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.getDefaultInstance()) return this;
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userEmail_ = "";
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
*
* Only user email is needed, and Result should be used.
*
*
* string userEmail = 1;
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.github.navi_cloud.shared.storage.CreateRootFolderRequest)
}
// @@protoc_insertion_point(class_scope:io.github.navi_cloud.shared.storage.CreateRootFolderRequest)
private static final io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest();
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateRootFolderRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateRootFolderRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateNewFolderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.github.navi_cloud.shared.storage.CreateNewFolderRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string userEmail = 1;
*/
java.lang.String getUserEmail();
/**
* string userEmail = 1;
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* string parentFolderName = 2;
*/
java.lang.String getParentFolderName();
/**
* string parentFolderName = 2;
*/
com.google.protobuf.ByteString
getParentFolderNameBytes();
/**
* string newFolderName = 3;
*/
java.lang.String getNewFolderName();
/**
* string newFolderName = 3;
*/
com.google.protobuf.ByteString
getNewFolderNameBytes();
}
/**
*
* Message for requesting to create a new folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.CreateNewFolderRequest}
*/
public static final class CreateNewFolderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.github.navi_cloud.shared.storage.CreateNewFolderRequest)
CreateNewFolderRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateNewFolderRequest.newBuilder() to construct.
private CreateNewFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateNewFolderRequest() {
userEmail_ = "";
parentFolderName_ = "";
newFolderName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateNewFolderRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
parentFolderName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
newFolderName_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.Builder.class);
}
public static final int USEREMAIL_FIELD_NUMBER = 1;
private volatile java.lang.Object userEmail_;
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTFOLDERNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object parentFolderName_;
/**
* string parentFolderName = 2;
*/
public java.lang.String getParentFolderName() {
java.lang.Object ref = parentFolderName_;
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();
parentFolderName_ = s;
return s;
}
}
/**
* string parentFolderName = 2;
*/
public com.google.protobuf.ByteString
getParentFolderNameBytes() {
java.lang.Object ref = parentFolderName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentFolderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NEWFOLDERNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object newFolderName_;
/**
* string newFolderName = 3;
*/
public java.lang.String getNewFolderName() {
java.lang.Object ref = newFolderName_;
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();
newFolderName_ = s;
return s;
}
}
/**
* string newFolderName = 3;
*/
public com.google.protobuf.ByteString
getNewFolderNameBytes() {
java.lang.Object ref = newFolderName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newFolderName_ = 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 (!getUserEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmail_);
}
if (!getParentFolderNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentFolderName_);
}
if (!getNewFolderNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newFolderName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userEmail_);
}
if (!getParentFolderNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentFolderName_);
}
if (!getNewFolderNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newFolderName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest)) {
return super.equals(obj);
}
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest other = (io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest) obj;
boolean result = true;
result = result && getUserEmail()
.equals(other.getUserEmail());
result = result && getParentFolderName()
.equals(other.getParentFolderName());
result = result && getNewFolderName()
.equals(other.getNewFolderName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USEREMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (37 * hash) + PARENTFOLDERNAME_FIELD_NUMBER;
hash = (53 * hash) + getParentFolderName().hashCode();
hash = (37 * hash) + NEWFOLDERNAME_FIELD_NUMBER;
hash = (53 * hash) + getNewFolderName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest 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;
}
/**
*
* Message for requesting to create a new folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.CreateNewFolderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.github.navi_cloud.shared.storage.CreateNewFolderRequest)
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.Builder.class);
}
// Construct using io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
userEmail_ = "";
parentFolderName_ = "";
newFolderName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest getDefaultInstanceForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.getDefaultInstance();
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest build() {
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest buildPartial() {
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest result = new io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest(this);
result.userEmail_ = userEmail_;
result.parentFolderName_ = parentFolderName_;
result.newFolderName_ = newFolderName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest) {
return mergeFrom((io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest other) {
if (other == io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.getDefaultInstance()) return this;
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (!other.getParentFolderName().isEmpty()) {
parentFolderName_ = other.parentFolderName_;
onChanged();
}
if (!other.getNewFolderName().isEmpty()) {
newFolderName_ = other.newFolderName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userEmail_ = "";
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string userEmail = 1;
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object parentFolderName_ = "";
/**
* string parentFolderName = 2;
*/
public java.lang.String getParentFolderName() {
java.lang.Object ref = parentFolderName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parentFolderName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string parentFolderName = 2;
*/
public com.google.protobuf.ByteString
getParentFolderNameBytes() {
java.lang.Object ref = parentFolderName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentFolderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string parentFolderName = 2;
*/
public Builder setParentFolderName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parentFolderName_ = value;
onChanged();
return this;
}
/**
* string parentFolderName = 2;
*/
public Builder clearParentFolderName() {
parentFolderName_ = getDefaultInstance().getParentFolderName();
onChanged();
return this;
}
/**
* string parentFolderName = 2;
*/
public Builder setParentFolderNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parentFolderName_ = value;
onChanged();
return this;
}
private java.lang.Object newFolderName_ = "";
/**
* string newFolderName = 3;
*/
public java.lang.String getNewFolderName() {
java.lang.Object ref = newFolderName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newFolderName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string newFolderName = 3;
*/
public com.google.protobuf.ByteString
getNewFolderNameBytes() {
java.lang.Object ref = newFolderName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newFolderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string newFolderName = 3;
*/
public Builder setNewFolderName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newFolderName_ = value;
onChanged();
return this;
}
/**
* string newFolderName = 3;
*/
public Builder clearNewFolderName() {
newFolderName_ = getDefaultInstance().getNewFolderName();
onChanged();
return this;
}
/**
* string newFolderName = 3;
*/
public Builder setNewFolderNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newFolderName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.github.navi_cloud.shared.storage.CreateNewFolderRequest)
}
// @@protoc_insertion_point(class_scope:io.github.navi_cloud.shared.storage.CreateNewFolderRequest)
private static final io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest();
}
public static io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateNewFolderRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateNewFolderRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteFolderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.github.navi_cloud.shared.storage.DeleteFolderRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string userEmail = 1;
*/
java.lang.String getUserEmail();
/**
* string userEmail = 1;
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* string targetFolder = 2;
*/
java.lang.String getTargetFolder();
/**
* string targetFolder = 2;
*/
com.google.protobuf.ByteString
getTargetFolderBytes();
}
/**
*
* Message for requesting deletion of folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.DeleteFolderRequest}
*/
public static final class DeleteFolderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.github.navi_cloud.shared.storage.DeleteFolderRequest)
DeleteFolderRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteFolderRequest.newBuilder() to construct.
private DeleteFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteFolderRequest() {
userEmail_ = "";
targetFolder_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteFolderRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
targetFolder_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.Builder.class);
}
public static final int USEREMAIL_FIELD_NUMBER = 1;
private volatile java.lang.Object userEmail_;
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGETFOLDER_FIELD_NUMBER = 2;
private volatile java.lang.Object targetFolder_;
/**
* string targetFolder = 2;
*/
public java.lang.String getTargetFolder() {
java.lang.Object ref = targetFolder_;
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();
targetFolder_ = s;
return s;
}
}
/**
* string targetFolder = 2;
*/
public com.google.protobuf.ByteString
getTargetFolderBytes() {
java.lang.Object ref = targetFolder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetFolder_ = 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 (!getUserEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmail_);
}
if (!getTargetFolderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetFolder_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userEmail_);
}
if (!getTargetFolderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetFolder_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest)) {
return super.equals(obj);
}
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest other = (io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest) obj;
boolean result = true;
result = result && getUserEmail()
.equals(other.getUserEmail());
result = result && getTargetFolder()
.equals(other.getTargetFolder());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USEREMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (37 * hash) + TARGETFOLDER_FIELD_NUMBER;
hash = (53 * hash) + getTargetFolder().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest 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;
}
/**
*
* Message for requesting deletion of folder
*
*
* Protobuf type {@code io.github.navi_cloud.shared.storage.DeleteFolderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.github.navi_cloud.shared.storage.DeleteFolderRequest)
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.class, io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.Builder.class);
}
// Construct using io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
userEmail_ = "";
targetFolder_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest getDefaultInstanceForType() {
return io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.getDefaultInstance();
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest build() {
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest buildPartial() {
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest result = new io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest(this);
result.userEmail_ = userEmail_;
result.targetFolder_ = targetFolder_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest) {
return mergeFrom((io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest other) {
if (other == io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.getDefaultInstance()) return this;
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (!other.getTargetFolder().isEmpty()) {
targetFolder_ = other.targetFolder_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userEmail_ = "";
/**
* string userEmail = 1;
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string userEmail = 1;
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string userEmail = 1;
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string userEmail = 1;
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object targetFolder_ = "";
/**
* string targetFolder = 2;
*/
public java.lang.String getTargetFolder() {
java.lang.Object ref = targetFolder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetFolder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string targetFolder = 2;
*/
public com.google.protobuf.ByteString
getTargetFolderBytes() {
java.lang.Object ref = targetFolder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetFolder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string targetFolder = 2;
*/
public Builder setTargetFolder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetFolder_ = value;
onChanged();
return this;
}
/**
* string targetFolder = 2;
*/
public Builder clearTargetFolder() {
targetFolder_ = getDefaultInstance().getTargetFolder();
onChanged();
return this;
}
/**
* string targetFolder = 2;
*/
public Builder setTargetFolderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetFolder_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.github.navi_cloud.shared.storage.DeleteFolderRequest)
}
// @@protoc_insertion_point(class_scope:io.github.navi_cloud.shared.storage.DeleteFolderRequest)
private static final io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest();
}
public static io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteFolderRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteFolderRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_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#StorageService/StorageMessage.proto\022#i" +
"o.github.navi_cloud.shared.storage\"A\n\026Fi" +
"ndInsideFilesRequest\022\021\n\tuserEmail\030\001 \001(\t\022" +
"\024\n\014targetFolder\030\002 \001(\t\",\n\027CreateRootFolde" +
"rRequest\022\021\n\tuserEmail\030\001 \001(\t\"\\\n\026CreateNew" +
"FolderRequest\022\021\n\tuserEmail\030\001 \001(\t\022\030\n\020pare" +
"ntFolderName\030\002 \001(\t\022\025\n\rnewFolderName\030\003 \001(" +
"\t\">\n\023DeleteFolderRequest\022\021\n\tuserEmail\030\001 " +
"\001(\t\022\024\n\014targetFolder\030\002 \001(\tb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_github_navi_cloud_shared_storage_FindInsideFilesRequest_descriptor,
new java.lang.String[] { "UserEmail", "TargetFolder", });
internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_github_navi_cloud_shared_storage_CreateRootFolderRequest_descriptor,
new java.lang.String[] { "UserEmail", });
internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_github_navi_cloud_shared_storage_CreateNewFolderRequest_descriptor,
new java.lang.String[] { "UserEmail", "ParentFolderName", "NewFolderName", });
internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_github_navi_cloud_shared_storage_DeleteFolderRequest_descriptor,
new java.lang.String[] { "UserEmail", "TargetFolder", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy