target.apidocs.com.google.api.services.servicemanagement.model.Field.html Maven / Gradle / Ivy
Field (Service Management API v1-rev20240823-2.0.0)
com.google.api.services.servicemanagement.model
Class Field
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.servicemanagement.model.Field
-
public final class Field
extends com.google.api.client.json.GenericJson
A single field of a message type.
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 Management API. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Field()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCardinality
public String getCardinality()
The field cardinality.
- Returns:
- value or
null
for none
-
setCardinality
public Field setCardinality(String cardinality)
The field cardinality.
- Parameters:
cardinality
- cardinality or null
for none
-
getDefaultValue
public String getDefaultValue()
The string value of the default value of this field. Proto2 syntax only.
- Returns:
- value or
null
for none
-
setDefaultValue
public Field setDefaultValue(String defaultValue)
The string value of the default value of this field. Proto2 syntax only.
- Parameters:
defaultValue
- defaultValue or null
for none
-
getJsonName
public String getJsonName()
The field JSON name.
- Returns:
- value or
null
for none
-
setJsonName
public Field setJsonName(String jsonName)
The field JSON name.
- Parameters:
jsonName
- jsonName or null
for none
-
getKind
public String getKind()
The field type.
- Returns:
- value or
null
for none
-
getName
public String getName()
The field name.
- Returns:
- value or
null
for none
-
getNumber
public Integer getNumber()
The field number.
- Returns:
- value or
null
for none
-
setNumber
public Field setNumber(Integer number)
The field number.
- Parameters:
number
- number or null
for none
-
getOneofIndex
public Integer getOneofIndex()
The index of the field type in `Type.oneofs`, for message or enumeration types. The first type
has index 1; zero means the type is not in the list.
- Returns:
- value or
null
for none
-
setOneofIndex
public Field setOneofIndex(Integer oneofIndex)
The index of the field type in `Type.oneofs`, for message or enumeration types. The first type
has index 1; zero means the type is not in the list.
- Parameters:
oneofIndex
- oneofIndex or null
for none
-
getOptions
public List<Option> getOptions()
The protocol buffer options.
- Returns:
- value or
null
for none
-
setOptions
public Field setOptions(List<Option> options)
The protocol buffer options.
- Parameters:
options
- options or null
for none
-
getPacked
public Boolean getPacked()
Whether to use alternative packed wire representation.
- Returns:
- value or
null
for none
-
setPacked
public Field setPacked(Boolean packed)
Whether to use alternative packed wire representation.
- Parameters:
packed
- packed or null
for none
-
getTypeUrl
public String getTypeUrl()
The field type URL, without the scheme, for message or enumeration types. Example:
`"type.googleapis.com/google.protobuf.Timestamp"`.
- Returns:
- value or
null
for none
-
setTypeUrl
public Field setTypeUrl(String typeUrl)
The field type URL, without the scheme, for message or enumeration types. Example:
`"type.googleapis.com/google.protobuf.Timestamp"`.
- Parameters:
typeUrl
- typeUrl or null
for none
-
set
public Field set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Field clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy