AydarZaynutdinov commented on a change in pull request #16700:
URL: https://github.com/apache/beam/pull/16700#discussion_r797858470



##########
File path: playground/backend/internal/cloud_bucket/precompiled_objects.go
##########
@@ -266,6 +286,20 @@ func getFileExtensionBySdk(precompiledObjectPath string) 
(string, error) {
        return extension, nil
 }
 
+// getObjectTypeByFolderName returns pb.PrecompiledObjectType by folder name
+func getObjectTypeByFolderName(folderName string) pb.PrecompiledObjectType {
+       switch folderName {
+       case "PRECOMPILED_OBJECT_TYPE_EXAMPLE":
+               return pb.PrecompiledObjectType_PRECOMPILED_OBJECT_TYPE_EXAMPLE
+       case "PRECOMPILED_OBJECT_TYPE_KATA":
+               return pb.PrecompiledObjectType_PRECOMPILED_OBJECT_TYPE_KATA
+       case "PRECOMPILED_OBJECT_TYPE_UNIT_TEST":
+               return 
pb.PrecompiledObjectType_PRECOMPILED_OBJECT_TYPE_UNIT_TEST
+       default:
+               return 
pb.PrecompiledObjectType_PRECOMPILED_OBJECT_TYPE_UNSPECIFIED
+       }
+}
+

Review comment:
       Done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to