Package com.google.api.client.json.rpc2
Class JsonRpcRequest
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.rpc2.JsonRpcRequest
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.FlagsNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectIdentifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response.private final StringVersion of the JSON-RPC protocol which is"2.0".private StringName of the method to be invoked.private ObjectStructured value that holds the parameter values to be used during the invocation of the method ornullfor none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.getId()Returns the identifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response.Returns the name of the method to be invoked.Returns the structured value that holds the parameter values to be used during the invocation of the method ornullfor none.Returns the version of the JSON-RPC protocol which is"2.0".Sets the given field value (may benull) for the given field name.voidSets the identifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response.voidSets the name of the method to be invoked.voidsetParameters(Object parameters) Sets the structured value that holds the parameter values to be used during the invocation of the method ornullfor none.Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringMethods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
jsonrpc
Version of the JSON-RPC protocol which is"2.0".- See Also:
-
id
Identifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response. -
method
Name of the method to be invoked. -
params
Structured value that holds the parameter values to be used during the invocation of the method ornullfor none.
-
-
Constructor Details
-
JsonRpcRequest
public JsonRpcRequest()
-
-
Method Details
-
getVersion
Returns the version of the JSON-RPC protocol which is"2.0".- Since:
- 1.5
-
getId
Returns the identifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response.- Since:
- 1.5
-
setId
Sets the identifier established by the client that must be a string or a number ornullfor a notification and therefore not expect to receive a response.- Since:
- 1.5
-
getMethod
Returns the name of the method to be invoked.- Since:
- 1.5
-
setMethod
Sets the name of the method to be invoked.- Since:
- 1.5
-
getParameters
Returns the structured value that holds the parameter values to be used during the invocation of the method ornullfor none.- Since:
- 1.5
-
setParameters
Sets the structured value that holds the parameter values to be used during the invocation of the method ornullfor none.- Since:
- 1.5
-
set
Description copied from class:GenericDataSets the given field value (may benull) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient thanGenericData.put(String, Object)because it avoids accessing the field's original value.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Overrides:
setin classGenericData
-
clone
Description copied from class:GenericDataMakes a "deep" clone of the generic data, in which the clone is completely independent of the original.- Overrides:
clonein classGenericData
-