public final class Peer
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 Control 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 |
---|
Peer() |
Modifier and Type | Method and Description |
---|---|
Peer |
clone() |
String |
getIp()
The IP address of the peer.
|
Map<String,String> |
getLabels()
The labels associated with the peer.
|
Long |
getPort()
The network port of the peer.
|
String |
getPrincipal()
The identity of this peer.
|
String |
getRegionCode()
The CLDR country/region code associated with the above IP address.
|
Peer |
set(String fieldName,
Object value) |
Peer |
setIp(String ip)
The IP address of the peer.
|
Peer |
setLabels(Map<String,String> labels)
The labels associated with the peer.
|
Peer |
setPort(Long port)
The network port of the peer.
|
Peer |
setPrincipal(String principal)
The identity of this peer.
|
Peer |
setRegionCode(String regionCode)
The CLDR country/region code associated with the above IP address.
|
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 getIp()
null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Peer setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic Long getPort()
null
for nonepublic Peer setPort(Long port)
port
- port or null
for nonepublic String getPrincipal()
null
for nonepublic Peer setPrincipal(String principal)
principal
- principal or null
for nonepublic String getRegionCode()
null
for nonepublic Peer setRegionCode(String regionCode)
regionCode
- regionCode or null
for nonepublic Peer set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Peer clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.