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

com.google.api.ClientProto Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/client.proto

package com.google.api;

public final class ClientProto {
  private ClientProto() {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.google.api.ClientProto.methodSignature);
    registry.add(com.google.api.ClientProto.defaultHost);
    registry.add(com.google.api.ClientProto.oauthScopes);
  }

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
  }

  public static final int METHOD_SIGNATURE_FIELD_NUMBER = 1051;
  /**
   *
   *
   * 
   * A definition of a client library method signature.
   * In client libraries, each proto RPC corresponds to one or more methods
   * which the end user is able to call, and calls the underlying RPC.
   * Normally, this method receives a single argument (a struct or instance
   * corresponding to the RPC request object). Defining this field will
   * add one or more overloads providing flattened or simpler method signatures
   * in some languages.
   * The fields on the method signature are provided as a comma-separated
   * string.
   * For example, the proto RPC and annotation:
   *   rpc CreateSubscription(CreateSubscriptionRequest)
   *       returns (Subscription) {
   *     option (google.api.method_signature) = "name,topic";
   *   }
   * Would add the following Java overload (in addition to the method accepting
   * the request object):
   *   public final Subscription createSubscription(String name, String topic)
   * The following backwards-compatibility guidelines apply:
   *   * Adding this annotation to an unannotated method is backwards
   *     compatible.
   *   * Adding this annotation to a method which already has existing
   *     method signature annotations is backwards compatible if and only if
   *     the new method signature annotation is last in the sequence.
   *   * Modifying or removing an existing method signature annotation is
   *     a breaking change.
   *   * Re-ordering existing method signature annotations is a breaking
   *     change.
   * 
* * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List> methodSignature = com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int DEFAULT_HOST_FIELD_NUMBER = 1049; /** * * *
   * The hostname for this service.
   * This should be specified with no prefix or protocol.
   * Example:
   *   service Foo {
   *     option (google.api.default_host) = "foo.googleapi.com";
   *     ...
   *   }
   * 
* * extend .google.protobuf.ServiceOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, java.lang.String> defaultHost = com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OAUTH_SCOPES_FIELD_NUMBER = 1050; /** * * *
   * OAuth scopes needed for the client.
   * Example:
   *   service Foo {
   *     option (google.api.oauth_scopes) = \
   *       "https://www.googleapis.com/auth/cloud-platform";
   *     ...
   *   }
   * If there is more than one scope, use a comma-separated string:
   * Example:
   *   service Foo {
   *     option (google.api.oauth_scopes) = \
   *       "https://www.googleapis.com/auth/cloud-platform,"
   *       "https://www.googleapis.com/auth/monitoring";
   *     ...
   *   }
   * 
* * extend .google.protobuf.ServiceOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, java.lang.String> oauthScopes = com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( java.lang.String.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\027google/api/client.proto\022\ngoogle.api\032 g" + "oogle/protobuf/descriptor.proto:9\n\020metho" + "d_signature\022\036.google.protobuf.MethodOpti" + "ons\030\233\010 \003(\t:6\n\014default_host\022\037.google.prot" + "obuf.ServiceOptions\030\231\010 \001(\t:6\n\014oauth_scop" + "es\022\037.google.protobuf.ServiceOptions\030\232\010 \001" + "(\tBi\n\016com.google.apiB\013ClientProtoP\001ZAgoo" + "gle.golang.org/genproto/googleapis/api/a" + "nnotations;annotations\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), }); methodSignature.internalInit(descriptor.getExtensions().get(0)); defaultHost.internalInit(descriptor.getExtensions().get(1)); oauthScopes.internalInit(descriptor.getExtensions().get(2)); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy