public final class Principal
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 Cloud Search 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 |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
java.lang.String |
getGroupResourceName()
This principal is a group identified using an external identity.
|
GSuitePrincipal |
getGsuitePrincipal()
This principal is a GSuite user, group or domain.
|
java.lang.String |
getUserResourceName()
This principal is a user identified using an external identity.
|
Principal |
set(java.lang.String fieldName,
java.lang.Object value) |
Principal |
setGroupResourceName(java.lang.String groupResourceName)
This principal is a group identified using an external identity.
|
Principal |
setGsuitePrincipal(GSuitePrincipal gsuitePrincipal)
This principal is a GSuite user, group or domain.
|
Principal |
setUserResourceName(java.lang.String userResourceName)
This principal is a user identified using an external identity.
|
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 getGroupResourceName()
null
for nonepublic Principal setGroupResourceName(java.lang.String groupResourceName)
groupResourceName
- groupResourceName or null
for nonepublic GSuitePrincipal getGsuitePrincipal()
null
for nonepublic Principal setGsuitePrincipal(GSuitePrincipal gsuitePrincipal)
gsuitePrincipal
- gsuitePrincipal or null
for nonepublic java.lang.String getUserResourceName()
null
for nonepublic Principal setUserResourceName(java.lang.String userResourceName)
userResourceName
- userResourceName or null
for nonepublic Principal set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Principal clone()
clone
in class com.google.api.client.json.GenericJson