All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.auth.util.Extension Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/auth/util/extension.proto

package com.clarifai.grpc.auth.util;

public final class Extension {
  private Extension() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.clarifai.grpc.auth.util.Extension.clPrivateField);
    registry.add(com.clarifai.grpc.auth.util.Extension.clPrivateRpc);
    registry.add(com.clarifai.grpc.auth.util.Extension.clDependingScopes);
    registry.add(com.clarifai.grpc.auth.util.Extension.clAuthType);
    registry.add(com.clarifai.grpc.auth.util.Extension.clPrivateMessage);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public static final int CL_PRIVATE_FIELD_FIELD_NUMBER = 80320;
  /**
   * 
   * indicates if this field should be private. If true, then internal use only. If False,
   * then publicly avaliable to world.
   * 
* * extend .google.protobuf.FieldOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.Boolean> clPrivateField = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int CL_PRIVATE_RPC_FIELD_NUMBER = 80321; /** *
   * indicates if this rpc should be private. If true, then internal use only. If False,
   * then publicly available to world.
   * 
* * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, java.lang.Boolean> clPrivateRpc = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int CL_DEPENDING_SCOPES_FIELD_NUMBER = 80322; /** *
   * For each grpc method we define a list of required low-level auth scopes that are needed
   * for the key that is issuing the request. These are checked at authorization time for the
   * request as one of the first things in the life of a request once it reaches out API
   * servers. There are additional checks for each scope when the resource is used throughout the
   * backend in order to protect that resource. For example, Inputs_Add protects the writes to the
   * inputs DB table. Since we know every PostInputs call needs to do that, we add Inputs_Add scope
   * to the cl_depending_scopes list for the PostInputs method.
   * This is only checked valid when used with KeyAuth cl_auth_type.
   * This should be the absolute minimum required scopes to make API calls with the method
   * that this options is used for. If there are some scopes that are needed some of the time
   * depending on the request, then leave those out as they will be checked at the tighest
   * possible portion of the codebase to protect that resource and won't effect every API call. For
   * example, the PostAnnotations call is often used to add concepts as well. If those concepts are
   * new, then the Concepts_Add scope will be needed. But since you don't always annotate with
   * concepts, it is not a hard requirements that Concepts_Add is used.
   * 
* * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List> clDependingScopes = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.clarifai.grpc.auth.scope.S.class, null); public static final int CL_AUTH_TYPE_FIELD_NUMBER = 80323; /** *
   * This is the authorizer type for the endpoint our of multiple backend authorizers.
   * 
* * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, com.clarifai.grpc.auth.types.AuthType> clAuthType = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.clarifai.grpc.auth.types.AuthType.class, null); public static final int CL_PRIVATE_MESSAGE_FIELD_NUMBER = 80324; /** *
   * indicates if this message should be private. If true, then internal use only. If False,
   * then publicly avaliable to world.
   * 
* * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Boolean> clPrivateMessage = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n(proto/clarifai/auth/util/extension.pro" + "to\022\022clarifai.auth.util\032%proto/clarifai/a" + "uth/scope/scope.proto\032%proto/clarifai/au" + "th/types/types.proto\032 google/protobuf/de" + "scriptor.proto:9\n\020cl_private_field\022\035.goo" + "gle.protobuf.FieldOptions\030\300\363\004 \001(\010:8\n\016cl_" + "private_rpc\022\036.google.protobuf.MethodOpti" + "ons\030\301\363\004 \001(\010:U\n\023cl_depending_scopes\022\036.goo" + "gle.protobuf.MethodOptions\030\302\363\004 \003(\0162\026.cla" + "rifai.auth.scope.S:U\n\014cl_auth_type\022\036.goo" + "gle.protobuf.MethodOptions\030\303\363\004 \001(\0162\035.cla" + "rifai.auth.types.AuthType:=\n\022cl_private_" + "message\022\037.google.protobuf.MessageOptions" + "\030\304\363\004 \001(\010Be\n\033com.clarifai.grpc.auth.utilP" + "\001Z=github.com/Clarifai/clarifai-go-grpc/" + "proto/clarifai/auth/util\242\002\004CAIPb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.clarifai.grpc.auth.scope.Scope.getDescriptor(), com.clarifai.grpc.auth.types.Types.getDescriptor(), com.google.protobuf.DescriptorProtos.getDescriptor(), }); clPrivateField.internalInit(descriptor.getExtensions().get(0)); clPrivateRpc.internalInit(descriptor.getExtensions().get(1)); clDependingScopes.internalInit(descriptor.getExtensions().get(2)); clAuthType.internalInit(descriptor.getExtensions().get(3)); clPrivateMessage.internalInit(descriptor.getExtensions().get(4)); com.clarifai.grpc.auth.scope.Scope.getDescriptor(); com.clarifai.grpc.auth.types.Types.getDescriptor(); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy