target.apidocs.com.google.api.services.directory.model.Schema.html Maven / Gradle / Ivy
Schema (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class Schema
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.Schema
-
public final class Schema
extends GenericJson
The type of API resource. For Schema resources, this is always `admin#directory#schema`.
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 Admin SDK 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
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
Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Schema
clone()
String
getDisplayName()
Display name for the schema.
String
getEtag()
The ETag of the resource.
List<SchemaFieldSpec>
getFields()
A list of fields in the schema.
String
getKind()
Kind of resource this is.
String
getSchemaId()
The unique identifier of the schema (Read-only)
String
getSchemaName()
The schema's name.
Schema
set(String fieldName,
Object value)
Schema
setDisplayName(String displayName)
Display name for the schema.
Schema
setEtag(String etag)
The ETag of the resource.
Schema
setFields(List<SchemaFieldSpec> fields)
A list of fields in the schema.
Schema
setKind(String kind)
Kind of resource this is.
Schema
setSchemaId(String schemaId)
The unique identifier of the schema (Read-only)
Schema
setSchemaName(String schemaName)
The schema's name.
-
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
-
getDisplayName
public String getDisplayName()
Display name for the schema.
- Returns:
- value or
null
for none
-
setDisplayName
public Schema setDisplayName(String displayName)
Display name for the schema.
- Parameters:
displayName
- displayName or null
for none
-
getEtag
public String getEtag()
The ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public Schema setEtag(String etag)
The ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getFields
public List<SchemaFieldSpec> getFields()
A list of fields in the schema.
- Returns:
- value or
null
for none
-
setFields
public Schema setFields(List<SchemaFieldSpec> fields)
A list of fields in the schema.
- Parameters:
fields
- fields or null
for none
-
getKind
public String getKind()
Kind of resource this is.
- Returns:
- value or
null
for none
-
setKind
public Schema setKind(String kind)
Kind of resource this is.
- Parameters:
kind
- kind or null
for none
-
getSchemaId
public String getSchemaId()
The unique identifier of the schema (Read-only)
- Returns:
- value or
null
for none
-
setSchemaId
public Schema setSchemaId(String schemaId)
The unique identifier of the schema (Read-only)
- Parameters:
schemaId
- schemaId or null
for none
-
getSchemaName
public String getSchemaName()
The schema's name. Each `schema_name` must be unique within a customer. Reusing a name results
in a `409: Entity already exists` error.
- Returns:
- value or
null
for none
-
setSchemaName
public Schema setSchemaName(String schemaName)
The schema's name. Each `schema_name` must be unique within a customer. Reusing a name results
in a `409: Entity already exists` error.
- Parameters:
schemaName
- schemaName or null
for none
-
set
public Schema set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Schema clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.