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

com.google.api.services.serviceusage.v1beta1.model.Context Maven / Gradle / Ivy

There is a newer version: v1-rev20241205-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * 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
 *
 * http://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.
 */
/*
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
 * (build: 2018-05-04 17:28:03 UTC)
 * on 2018-08-21 at 22:26:09 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.serviceusage.v1beta1.model;

/**
 * `Context` defines which contexts an API requests.
 *
 * Example:
 *
 *     context:       rules:       - selector: "*"         requested:         -
 * google.rpc.context.ProjectContext         - google.rpc.context.OriginContext
 *
 * The above specifies that all methods in the API request `google.rpc.context.ProjectContext` and
 * `google.rpc.context.OriginContext`.
 *
 * Available context types are defined in package `google.rpc.context`.
 *
 * This also provides mechanism to whitelist any protobuf message extension that can be sent in grpc
 * metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format. For example, list any service
 * specific protobuf types that can appear in grpc metadata as follows in your yaml file:
 *
 * Example:
 *
 *     context:       rules:        - selector:
 * "google.example.library.v1.LibraryService.CreateBook"          allowed_request_extensions:
 * - google.foo.v1.NewExtension          allowed_response_extensions:          -
 * google.foo.v1.NewExtension
 *
 * You can also specify extension ID instead of fully qualified extension name here.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Service Usage API. For a detailed explanation see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Context extends com.google.api.client.json.GenericJson { /** * A list of RPC context rules that apply to individual API methods. * * **NOTE:** All service configuration rules follow "last one wins" order. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List rules; static { // hack to force ProGuard to consider ContextRule used, since otherwise it would be stripped out // see http://code.google.com/p/google-api-java-client/issues/detail?id=528 com.google.api.client.util.Data.nullOf(ContextRule.class); } /** * A list of RPC context rules that apply to individual API methods. * * **NOTE:** All service configuration rules follow "last one wins" order. * @return value or {@code null} for none */ public java.util.List getRules() { return rules; } /** * A list of RPC context rules that apply to individual API methods. * * **NOTE:** All service configuration rules follow "last one wins" order. * @param rules rules or {@code null} for none */ public Context setRules(java.util.List rules) { this.rules = rules; return this; } @Override public Context set(String fieldName, Object value) { return (Context) super.set(fieldName, value); } @Override public Context clone() { return (Context) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy