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

target.apidocs.com.google.api.services.servicemanagement.model.Context.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241106-2.0.0
Show newest version






Context (Service Management API v1-rev20240823-2.0.0)












com.google.api.services.servicemanagement.model

Class Context

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class Context
    extends com.google.api.client.json.GenericJson
    `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 allowlist 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 Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • Context

        public Context()
    • Method Detail

      • getRules

        public List<ContextRule> getRules()
        A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order.
        Returns:
        value or null for none
      • setRules

        public Context setRules(List<ContextRule> rules)
        A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order.
        Parameters:
        rules - rules or null for none
      • set

        public Context set(String fieldName,
                           Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Context clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy