Class ConditionContext.Peer (1.39.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
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConditionContext.Peer getDefaultInstance()
Returns
TypeDescription
ConditionContext.Peer

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConditionContext.Peer.Builder newBuilder()
Returns
TypeDescription
ConditionContext.Peer.Builder

newBuilder(ConditionContext.Peer prototype)

public static ConditionContext.Peer.Builder newBuilder(ConditionContext.Peer prototype)
Parameter
NameDescription
prototypeConditionContext.Peer
Returns
TypeDescription
ConditionContext.Peer.Builder

parseDelimitedFrom(InputStream input)

public static ConditionContext.Peer parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConditionContext.Peer parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConditionContext.Peer parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConditionContext.Peer parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConditionContext.Peer parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConditionContext.Peer parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext.Peer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext.Peer
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConditionContext.Peer getDefaultInstanceForType()
Returns
TypeDescription
ConditionContext.Peer

getIp()

public String getIp()

The IPv4 or IPv6 address of the peer.

string ip = 1;

Returns
TypeDescription
String

The ip.

getIpBytes()

public ByteString getIpBytes()

The IPv4 or IPv6 address of the peer.

string ip = 1;

Returns
TypeDescription
ByteString

The bytes for ip.

getParserForType()

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

getPort()

public long getPort()

The network port of the peer.

int64 port = 2;

Returns
TypeDescription
long

The port.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConditionContext.Peer.Builder newBuilderForType()
Returns
TypeDescription
ConditionContext.Peer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConditionContext.Peer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConditionContext.Peer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConditionContext.Peer.Builder toBuilder()
Returns
TypeDescription
ConditionContext.Peer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException