Class ConditionContext.Peer (1.47.0)

public static final class ConditionContext.Peer extends GeneratedMessageV3 implements ConditionContext.PeerOrBuilder

This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in principal and labels as appropriate.

Protobuf type google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer

Static Fields

IP_FIELD_NUMBER

public static final int IP_FIELD_NUMBER
Field Value
Type Description
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConditionContext.Peer getDefaultInstance()
Returns
Type Description
ConditionContext.Peer

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ConditionContext.Peer.Builder newBuilder()
Returns
Type Description
ConditionContext.Peer.Builder

newBuilder(ConditionContext.Peer prototype)

public static ConditionContext.Peer.Builder newBuilder(ConditionContext.Peer prototype)
Parameter
Name Description
prototype ConditionContext.Peer
Returns
Type Description
ConditionContext.Peer.Builder

parseDelimitedFrom(InputStream input)

public static ConditionContext.Peer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ConditionContext.Peer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConditionContext.Peer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConditionContext.Peer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ConditionContext.Peer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ConditionContext.Peer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext.Peer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ConditionContext.Peer> parser()
Returns
Type Description
Parser<Peer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ConditionContext.Peer getDefaultInstanceForType()
Returns
Type Description
ConditionContext.Peer

getIp()

public String getIp()

The IPv4 or IPv6 address of the peer.

string ip = 1;

Returns
Type Description
String

The ip.

getIpBytes()

public ByteString getIpBytes()

The IPv4 or IPv6 address of the peer.

string ip = 1;

Returns
Type Description
ByteString

The bytes for ip.

getParserForType()

public Parser<ConditionContext.Peer> getParserForType()
Returns
Type Description
Parser<Peer>
Overrides

getPort()

public long getPort()

The network port of the peer.

int64 port = 2;

Returns
Type Description
long

The port.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ConditionContext.Peer.Builder newBuilderForType()
Returns
Type Description
ConditionContext.Peer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConditionContext.Peer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConditionContext.Peer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ConditionContext.Peer.Builder toBuilder()
Returns
Type Description
ConditionContext.Peer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException