Class ObjectId (2.17.0)

public final class ObjectId extends GeneratedMessageV3 implements ObjectIdOrBuilder

An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.

Protobuf type google.cloud.security.privateca.v1beta1.ObjectId

Implements

ObjectIdOrBuilder

Static Fields

OBJECT_ID_PATH_FIELD_NUMBER

public static final int OBJECT_ID_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ObjectId getDefaultInstance()
Returns
TypeDescription
ObjectId

getDescriptor()

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

newBuilder()

public static ObjectId.Builder newBuilder()
Returns
TypeDescription
ObjectId.Builder

newBuilder(ObjectId prototype)

public static ObjectId.Builder newBuilder(ObjectId prototype)
Parameter
NameDescription
prototypeObjectId
Returns
TypeDescription
ObjectId.Builder

parseDelimitedFrom(InputStream input)

public static ObjectId parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ObjectId
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ObjectId parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ObjectId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ObjectId parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ObjectId
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ObjectId parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ObjectId
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ObjectId parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ObjectId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ObjectId> parser()
Returns
TypeDescription
Parser<ObjectId>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ObjectId getDefaultInstanceForType()
Returns
TypeDescription
ObjectId

getObjectIdPath(int index)

public int getObjectIdPath(int index)

Required. The parts of an OID path. The most significant parts of the path come first.

repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The objectIdPath at the given index.

getObjectIdPathCount()

public int getObjectIdPathCount()

Required. The parts of an OID path. The most significant parts of the path come first.

repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of objectIdPath.

getObjectIdPathList()

public List<Integer> getObjectIdPathList()

Required. The parts of an OID path. The most significant parts of the path come first.

repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Integer>

A list containing the objectIdPath.

getParserForType()

public Parser<ObjectId> getParserForType()
Returns
TypeDescription
Parser<ObjectId>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 ObjectId.Builder newBuilderForType()
Returns
TypeDescription
ObjectId.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ObjectId.Builder toBuilder()
Returns
TypeDescription
ObjectId.Builder

writeTo(CodedOutputStream output)

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