private void addSystemCredentialsToProto() {
   maybeInitBuilder();
   builder.clearSystemCredentialsForApps();
   for (Map.Entry<ApplicationId, ByteBuffer> entry : systemCredentials.entrySet()) {
     builder.addSystemCredentialsForApps(
         SystemCredentialsForAppsProto.newBuilder()
             .setAppId(convertToProtoFormat(entry.getKey()))
             .setCredentialsForApp(ProtoUtils.convertToProtoFormat(entry.getValue().duplicate())));
   }
 }
コード例 #2
0
 private ExecutionTypeProto convertToProtoFormat(ExecutionType executionType) {
   return ProtoUtils.convertToProtoFormat(executionType);
 }
コード例 #3
0
 private ContainerTypeProto convertToProtoFormat(ContainerType containerType) {
   return ProtoUtils.convertToProtoFormat(containerType);
 }