public final class Field
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 Usage 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
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
Field |
clone() |
java.lang.String |
getCardinality()
The field cardinality.
|
java.lang.String |
getDefaultValue()
The string value of the default value of this field.
|
java.lang.String |
getJsonName()
The field JSON name.
|
java.lang.String |
getKind()
The field type.
|
java.lang.String |
getName()
The field name.
|
java.lang.Integer |
getNumber()
The field number.
|
java.lang.Integer |
getOneofIndex()
The index of the field type in `Type.oneofs`, for message or enumeration types.
|
java.util.List<Option> |
getOptions()
The protocol buffer options.
|
java.lang.Boolean |
getPacked()
Whether to use alternative packed wire representation.
|
java.lang.String |
getTypeUrl()
The field type URL, without the scheme, for message or enumeration types.
|
Field |
set(java.lang.String fieldName,
java.lang.Object value) |
Field |
setCardinality(java.lang.String cardinality)
The field cardinality.
|
Field |
setDefaultValue(java.lang.String defaultValue)
The string value of the default value of this field.
|
Field |
setJsonName(java.lang.String jsonName)
The field JSON name.
|
Field |
setKind(java.lang.String kind)
The field type.
|
Field |
setName(java.lang.String name)
The field name.
|
Field |
setNumber(java.lang.Integer number)
The field number.
|
Field |
setOneofIndex(java.lang.Integer oneofIndex)
The index of the field type in `Type.oneofs`, for message or enumeration types.
|
Field |
setOptions(java.util.List<Option> options)
The protocol buffer options.
|
Field |
setPacked(java.lang.Boolean packed)
Whether to use alternative packed wire representation.
|
Field |
setTypeUrl(java.lang.String typeUrl)
The field type URL, without the scheme, for message or enumeration types.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCardinality()
null
for nonepublic Field setCardinality(java.lang.String cardinality)
cardinality
- cardinality or null
for nonepublic java.lang.String getDefaultValue()
null
for nonepublic Field setDefaultValue(java.lang.String defaultValue)
defaultValue
- defaultValue or null
for nonepublic java.lang.String getJsonName()
null
for nonepublic Field setJsonName(java.lang.String jsonName)
jsonName
- jsonName or null
for nonepublic java.lang.String getKind()
null
for nonepublic Field setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getName()
null
for nonepublic Field setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.Integer getNumber()
null
for nonepublic Field setNumber(java.lang.Integer number)
number
- number or null
for nonepublic java.lang.Integer getOneofIndex()
null
for nonepublic Field setOneofIndex(java.lang.Integer oneofIndex)
oneofIndex
- oneofIndex or null
for nonepublic java.util.List<Option> getOptions()
null
for nonepublic Field setOptions(java.util.List<Option> options)
options
- options or null
for nonepublic java.lang.Boolean getPacked()
null
for nonepublic Field setPacked(java.lang.Boolean packed)
packed
- packed or null
for nonepublic java.lang.String getTypeUrl()
null
for nonepublic Field setTypeUrl(java.lang.String typeUrl)
typeUrl
- typeUrl or null
for nonepublic Field set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Field clone()
clone
in class com.google.api.client.json.GenericJson