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 Networking 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 |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
Field |
clone() |
String |
getCardinality()
The field cardinality.
|
String |
getDefaultValue()
The string value of the default value of this field.
|
String |
getJsonName()
The field JSON name.
|
String |
getKind()
The field type.
|
String |
getName()
The field name.
|
Integer |
getNumber()
The field number.
|
Integer |
getOneofIndex()
The index of the field type in `Type.oneofs`, for message or enumeration types.
|
List<Option> |
getOptions()
The protocol buffer options.
|
Boolean |
getPacked()
Whether to use alternative packed wire representation.
|
String |
getTypeUrl()
The field type URL, without the scheme, for message or enumeration types.
|
Field |
set(String fieldName,
Object value) |
Field |
setCardinality(String cardinality)
The field cardinality.
|
Field |
setDefaultValue(String defaultValue)
The string value of the default value of this field.
|
Field |
setJsonName(String jsonName)
The field JSON name.
|
Field |
setKind(String kind)
The field type.
|
Field |
setName(String name)
The field name.
|
Field |
setNumber(Integer number)
The field number.
|
Field |
setOneofIndex(Integer oneofIndex)
The index of the field type in `Type.oneofs`, for message or enumeration types.
|
Field |
setOptions(List<Option> options)
The protocol buffer options.
|
Field |
setPacked(Boolean packed)
Whether to use alternative packed wire representation.
|
Field |
setTypeUrl(String typeUrl)
The field type URL, without the scheme, for message or enumeration types.
|
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 getCardinality()
null
for nonepublic Field setCardinality(String cardinality)
cardinality
- cardinality or null
for nonepublic String getDefaultValue()
null
for nonepublic Field setDefaultValue(String defaultValue)
defaultValue
- defaultValue or null
for nonepublic String getJsonName()
null
for nonepublic Field setJsonName(String jsonName)
jsonName
- jsonName or null
for nonepublic String getKind()
null
for nonepublic String getName()
null
for nonepublic Integer getNumber()
null
for nonepublic Field setNumber(Integer number)
number
- number or null
for nonepublic Integer getOneofIndex()
null
for nonepublic Field setOneofIndex(Integer oneofIndex)
oneofIndex
- oneofIndex or null
for nonepublic List<Option> getOptions()
null
for nonepublic Field setOptions(List<Option> options)
options
- options or null
for nonepublic Boolean getPacked()
null
for nonepublic Field setPacked(Boolean packed)
packed
- packed or null
for nonepublic String getTypeUrl()
null
for nonepublic Field setTypeUrl(String typeUrl)
typeUrl
- typeUrl or null
for nonepublic Field set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Field clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.