Commit ecb9f264 authored by Ali Saeed's avatar Ali Saeed

upload my updates

parent f9f3976c
File added
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="SpringBoot_gRPC_Rest_1" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="SpringBoot_gRPC_Rest_1" options="-parameters" />
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/com/example/SpringBoot_gRPC_Rest_1/ProtoService/FileService" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/target/classes" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.7.17/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.7.17/maven-plugin/reference/html/#build-image)
...@@ -7,5 +7,4 @@ import io.grpc.Metadata; ...@@ -7,5 +7,4 @@ import io.grpc.Metadata;
public class Constant { public class Constant {
public static final Metadata.Key<byte[]> fileMetaDataKey = Metadata.Key.of("file-metadata-bin", Metadata.BINARY_BYTE_MARSHALLER); public static final Metadata.Key<byte[]> fileMetaDataKey = Metadata.Key.of("file-metadata-bin", Metadata.BINARY_BYTE_MARSHALLER);
public static final Context.Key<MetaData> fileMetaContext = Context.key("file-meta"); public static final Context.Key<MetaData> fileMetaContext = Context.key("file-meta");
} }
...@@ -20,6 +20,5 @@ public class UploadFileController { ...@@ -20,6 +20,5 @@ public class UploadFileController {
public String uploadFile(@RequestParam("file") MultipartFile file) { public String uploadFile(@RequestParam("file") MultipartFile file) {
return this.uploadFileService.uploadFile(file); return this.uploadFileService.uploadFile(file);
} }
} }
\ No newline at end of file
...@@ -62,7 +62,6 @@ public class UploadFileService { ...@@ -62,7 +62,6 @@ public class UploadFileService {
response.append(UploadStatus.FAILED); response.append(UploadStatus.FAILED);
throwable.printStackTrace(); throwable.printStackTrace();
countDownLatch.countDown(); countDownLatch.countDown();
} }
@Override @Override
...@@ -70,7 +69,7 @@ public class UploadFileService { ...@@ -70,7 +69,7 @@ public class UploadFileService {
countDownLatch.countDown(); countDownLatch.countDown();
} }
}); });
byte[] fiveKb = new byte[5120]; byte[] fiveKb = new byte[40960];
int length; int length;
try { try {
while ((length = inputStream.read(fiveKb)) > 0){ while ((length = inputStream.read(fiveKb)) > 0){
......
grpc.client.file-upload.address= static://localhost:2222 grpc.client.file-upload.address= static://localhost:9090
grpc.client.file-upload.negotiationType= plaintext grpc.client.file-upload.negotiationType= plaintext
grpc.client.file-upload.address= static://localhost:9090
grpc.client.file-upload.negotiationType= plaintext
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface FileRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.FileRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.MyFileService.MyFile file = 1;</code>
* @return Whether the file field is set.
*/
boolean hasFile();
/**
* <code>.MyFileService.MyFile file = 1;</code>
* @return The file.
*/
MyFileService.MyFile getFile();
/**
* <code>.MyFileService.MyFile file = 1;</code>
*/
MyFileService.MyFileOrBuilder getFileOrBuilder();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface FileResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.FileResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string fileName = 1;</code>
* @return The fileName.
*/
java.lang.String getFileName();
/**
* <code>string fileName = 1;</code>
* @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* <code>.MyFileService.UploadStatus uploadStatus = 2;</code>
* @return The enum numeric value on the wire for uploadStatus.
*/
int getUploadStatusValue();
/**
* <code>.MyFileService.UploadStatus uploadStatus = 2;</code>
* @return The uploadStatus.
*/
MyFileService.UploadStatus getUploadStatus();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public final class FileService {
private FileService() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_MyFile_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_MyFile_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_FileRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_FileRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_FileResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_FileResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_MetaData_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_MetaData_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\021FileService.proto\022\rMyFileService\"\031\n\006My" +
"File\022\017\n\007content\030\001 \001(\014\"2\n\013FileRequest\022#\n\004" +
"file\030\001 \001(\0132\025.MyFileService.MyFile\"S\n\014Fil" +
"eResponse\022\020\n\010fileName\030\001 \001(\t\0221\n\014uploadSta" +
"tus\030\002 \001(\0162\033.MyFileService.UploadStatus\"*" +
"\n\010MetaData\022\020\n\010fileName\030\001 \001(\t\022\014\n\004size\030\002 \001" +
"(\005*\'\n\014UploadStatus\022\013\n\007SUCCESS\020\000\022\n\n\006FAILE" +
"D\020\0012^\n\021UploadFileService\022I\n\nuploadFile\022\032" +
".MyFileService.FileRequest\032\033.MyFileServi" +
"ce.FileResponse\"\000(\001B\021\n\rMyFileServiceP\001b\006" +
"proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_MyFileService_MyFile_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_MyFileService_MyFile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_MyFile_descriptor,
new java.lang.String[] { "Content", });
internal_static_MyFileService_FileRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_MyFileService_FileRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_FileRequest_descriptor,
new java.lang.String[] { "File", });
internal_static_MyFileService_FileResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_MyFileService_FileResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_FileResponse_descriptor,
new java.lang.String[] { "FileName", "UploadStatus", });
internal_static_MyFileService_MetaData_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_MyFileService_MetaData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_MetaData_descriptor,
new java.lang.String[] { "FileName", "Size", });
}
// @@protoc_insertion_point(outer_class_scope)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface MetaDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.MetaData)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string fileName = 1;</code>
* @return The fileName.
*/
java.lang.String getFileName();
/**
* <code>string fileName = 1;</code>
* @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* <code>int32 size = 2;</code>
* @return The size.
*/
int getSize();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface MyFileOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.MyFile)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bytes content = 1;</code>
* @return The content.
*/
com.google.protobuf.ByteString getContent();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
/**
* Protobuf enum {@code MyFileService.UploadStatus}
*/
public enum UploadStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>SUCCESS = 0;</code>
*/
SUCCESS(0),
/**
* <code>FAILED = 1;</code>
*/
FAILED(1),
UNRECOGNIZED(-1),
;
/**
* <code>SUCCESS = 0;</code>
*/
public static final int SUCCESS_VALUE = 0;
/**
* <code>FAILED = 1;</code>
*/
public static final int FAILED_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UploadStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static UploadStatus forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<UploadStatus>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UploadStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<UploadStatus>() {
public UploadStatus findValueByNumber(int number) {
return UploadStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return MyFileService.FileService.getDescriptor().getEnumTypes().get(0);
}
private static final UploadStatus[] VALUES = values();
public static UploadStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private UploadStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:MyFileService.UploadStatus)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface FileRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.FileRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.MyFileService.MyFile file = 1;</code>
* @return Whether the file field is set.
*/
boolean hasFile();
/**
* <code>.MyFileService.MyFile file = 1;</code>
* @return The file.
*/
MyFileService.MyFile getFile();
/**
* <code>.MyFileService.MyFile file = 1;</code>
*/
MyFileService.MyFileOrBuilder getFileOrBuilder();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface FileResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.FileResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string fileName = 1;</code>
* @return The fileName.
*/
java.lang.String getFileName();
/**
* <code>string fileName = 1;</code>
* @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* <code>.MyFileService.UploadStatus uploadStatus = 2;</code>
* @return The enum numeric value on the wire for uploadStatus.
*/
int getUploadStatusValue();
/**
* <code>.MyFileService.UploadStatus uploadStatus = 2;</code>
* @return The uploadStatus.
*/
MyFileService.UploadStatus getUploadStatus();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public final class FileService {
private FileService() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_MyFile_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_MyFile_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_FileRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_FileRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_FileResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_FileResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MyFileService_MetaData_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MyFileService_MetaData_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\021FileService.proto\022\rMyFileService\"\031\n\006My" +
"File\022\017\n\007content\030\001 \001(\014\"2\n\013FileRequest\022#\n\004" +
"file\030\001 \001(\0132\025.MyFileService.MyFile\"S\n\014Fil" +
"eResponse\022\020\n\010fileName\030\001 \001(\t\0221\n\014uploadSta" +
"tus\030\002 \001(\0162\033.MyFileService.UploadStatus\"*" +
"\n\010MetaData\022\020\n\010fileName\030\001 \001(\t\022\014\n\004size\030\002 \001" +
"(\005*\'\n\014UploadStatus\022\013\n\007SUCCESS\020\000\022\n\n\006FAILE" +
"D\020\0012^\n\021UploadFileService\022I\n\nuploadFile\022\032" +
".MyFileService.FileRequest\032\033.MyFileServi" +
"ce.FileResponse\"\000(\001B\021\n\rMyFileServiceP\001b\006" +
"proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_MyFileService_MyFile_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_MyFileService_MyFile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_MyFile_descriptor,
new java.lang.String[] { "Content", });
internal_static_MyFileService_FileRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_MyFileService_FileRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_FileRequest_descriptor,
new java.lang.String[] { "File", });
internal_static_MyFileService_FileResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_MyFileService_FileResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_FileResponse_descriptor,
new java.lang.String[] { "FileName", "UploadStatus", });
internal_static_MyFileService_MetaData_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_MyFileService_MetaData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyFileService_MetaData_descriptor,
new java.lang.String[] { "FileName", "Size", });
}
// @@protoc_insertion_point(outer_class_scope)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface MetaDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.MetaData)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string fileName = 1;</code>
* @return The fileName.
*/
java.lang.String getFileName();
/**
* <code>string fileName = 1;</code>
* @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* <code>int32 size = 2;</code>
* @return The size.
*/
int getSize();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileService.proto
package MyFileService;
public interface MyFileOrBuilder extends
// @@protoc_insertion_point(interface_extends:MyFileService.MyFile)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bytes content = 1;</code>
* @return The content.
*/
com.google.protobuf.ByteString getContent();
}
artifactId=SpringBoot_gRPC_Rest_1
groupId=com.example
version=0.0.1-SNAPSHOT
MyFileService\UploadFileServiceGrpc$2.class
com\example\SpringBoot_gRPC_Rest_1\SpringBootGRpcRest1Application.class
MyFileService\MetaData.class
MyFileService\FileResponseOrBuilder.class
MyFileService\UploadStatus.class
MyFileService\FileRequest.class
MyFileService\FileRequestOrBuilder.class
MyFileService\MyFile$1.class
MyFileService\FileRequest$1.class
MyFileService\FileService.class
MyFileService\MetaData$1.class
MyFileService\FileResponse$Builder.class
MyFileService\MyFileOrBuilder.class
MyFileService\MetaDataOrBuilder.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceStub.class
MyFileService\MetaData$Builder.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceMethodDescriptorSupplier.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceImplBase.class
MyFileService\MyFile.class
MyFileService\UploadStatus$1.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceFutureStub.class
MyFileService\UploadFileServiceGrpc$MethodHandlers.class
MyFileService\FileResponse$1.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceBlockingStub.class
MyFileService\UploadFileServiceGrpc.class
MyFileService\UploadFileServiceGrpc$3.class
MyFileService\UploadFileServiceGrpc$1.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceFileDescriptorSupplier.class
MyFileService\FileResponse.class
MyFileService\UploadFileServiceGrpc$UploadFileServiceBaseDescriptorSupplier.class
MyFileService\MyFile$Builder.class
MyFileService\FileRequest$Builder.class
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\grpc-java\MyFileService\UploadFileServiceGrpc.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\FileRequest.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\FileService.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\MetaData.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\FileResponseOrBuilder.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\MyFileOrBuilder.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\UploadStatus.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\MyFile.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\src\main\java\com\example\SpringBoot_gRPC_Rest_1\SpringBootGRpcRest1Application.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\FileRequestOrBuilder.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\MetaDataOrBuilder.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\target\generated-sources\protobuf\java\MyFileService\FileResponse.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\src\main\java\com\example\SpringBoot_gRPC_Rest_1\Home\UploadFileController.java
D:\SpringBoot\SpringBoot_gRPC_Rest_1\src\test\java\com\example\SpringBoot_gRPC_Rest_1\SpringBootGRpcRest1ApplicationTests.java
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment