public final class Api
extends com.google.api.client.json.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 Control API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Api() |
Modifier and Type | Method and Description |
---|---|
Api |
clone() |
String |
getOperation()
The API operation name.
|
String |
getProtocol()
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
|
String |
getService()
The API service name.
|
String |
getVersion()
The API version associated with the API operation above, such as "v1" or "v1alpha1".
|
Api |
set(String fieldName,
Object value) |
Api |
setOperation(String operation)
The API operation name.
|
Api |
setProtocol(String protocol)
The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".
|
Api |
setService(String service)
The API service name.
|
Api |
setVersion(String version)
The API version associated with the API operation above, such as "v1" or "v1alpha1".
|
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 String getOperation()
null
for nonepublic Api setOperation(String operation)
operation
- operation or null
for nonepublic String getProtocol()
null
for nonepublic Api setProtocol(String protocol)
protocol
- protocol or null
for nonepublic String getService()
null
for nonepublic Api setService(String service)
service
- service or null
for nonepublic String getVersion()
null
for nonepublic Api setVersion(String version)
version
- version or null
for nonepublic Api set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Api clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.