com.gojek.de.stencil.client.StencilClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stencil Show documentation
Show all versions of stencil Show documentation
Library to pull latest proto descriptors from a remote server
package com.gojek.de.stencil.client;
import com.gojek.de.stencil.models.DescriptorAndTypeName;
import com.google.protobuf.Descriptors;
import java.io.Closeable;
import java.util.Map;
public interface StencilClient extends Closeable {
Descriptors.Descriptor get(String className);
Map getAll();
Map getTypeNameToPackageNameMap();
Map getAllDescriptorAndTypeName();
default String getAppName() {
String podName = System.getenv("POD_NAME");
if (podName != null) return podName;
return "";
}
}