public final class ContextRule extends GenericJson
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 Consumer Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ContextRule() |
Modifier and Type | Method and Description |
---|---|
ContextRule |
clone() |
List<String> |
getAllowedRequestExtensions()
A list of full type names or extension IDs of extensions allowed in grpc side channel from
client to backend.
|
List<String> |
getAllowedResponseExtensions()
A list of full type names or extension IDs of extensions allowed in grpc side channel from
backend to client.
|
List<String> |
getProvided()
A list of full type names of provided contexts.
|
List<String> |
getRequested()
A list of full type names of requested contexts.
|
String |
getSelector()
Selects the methods to which this rule applies.
|
ContextRule |
set(String fieldName,
Object value) |
ContextRule |
setAllowedRequestExtensions(List<String> allowedRequestExtensions)
A list of full type names or extension IDs of extensions allowed in grpc side channel from
client to backend.
|
ContextRule |
setAllowedResponseExtensions(List<String> allowedResponseExtensions)
A list of full type names or extension IDs of extensions allowed in grpc side channel from
backend to client.
|
ContextRule |
setProvided(List<String> provided)
A list of full type names of provided contexts.
|
ContextRule |
setRequested(List<String> requested)
A list of full type names of requested contexts.
|
ContextRule |
setSelector(String selector)
Selects the methods to which this rule applies.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getAllowedRequestExtensions()
null
for nonepublic ContextRule setAllowedRequestExtensions(List<String> allowedRequestExtensions)
allowedRequestExtensions
- allowedRequestExtensions or null
for nonepublic List<String> getAllowedResponseExtensions()
null
for nonepublic ContextRule setAllowedResponseExtensions(List<String> allowedResponseExtensions)
allowedResponseExtensions
- allowedResponseExtensions or null
for nonepublic List<String> getProvided()
null
for nonepublic ContextRule setProvided(List<String> provided)
provided
- provided or null
for nonepublic List<String> getRequested()
null
for nonepublic ContextRule setRequested(List<String> requested)
requested
- requested or null
for nonepublic String getSelector()
null
for nonepublic ContextRule setSelector(String selector)
selector
- selector or null
for nonepublic ContextRule set(String fieldName, Object value)
set
in class GenericJson
public ContextRule clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.