Class ObjectId.Builder (2.8.0)

public static final class ObjectId.Builder extends GeneratedMessageV3.Builder<ObjectId.Builder> 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.v1.ObjectId

Implements

ObjectIdOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllObjectIdPath(Iterable<? extends Integer> values)

public ObjectId.Builder addAllObjectIdPath(Iterable<? extends Integer> values)

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
valuesIterable<? extends java.lang.Integer>

The objectIdPath to add.

Returns
TypeDescription
ObjectId.Builder

This builder for chaining.

addObjectIdPath(int value)

public ObjectId.Builder addObjectIdPath(int value)

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
valueint

The objectIdPath to add.

Returns
TypeDescription
ObjectId.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectId.Builder
Overrides

build()

public ObjectId build()
Returns
TypeDescription
ObjectId

buildPartial()

public ObjectId buildPartial()
Returns
TypeDescription
ObjectId

clear()

public ObjectId.Builder clear()
Returns
TypeDescription
ObjectId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ObjectId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ObjectId.Builder
Overrides

clearObjectIdPath()

public ObjectId.Builder clearObjectIdPath()

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
ObjectId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ObjectId.Builder
Overrides

clone()

public ObjectId.Builder clone()
Returns
TypeDescription
ObjectId.Builder
Overrides

getDefaultInstanceForType()

public ObjectId getDefaultInstanceForType()
Returns
TypeDescription
ObjectId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ObjectId other)

public ObjectId.Builder mergeFrom(ObjectId other)
Parameter
NameDescription
otherObjectId
Returns
TypeDescription
ObjectId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectId.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ObjectId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ObjectId.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectId.Builder
Overrides

setObjectIdPath(int index, int value)

public ObjectId.Builder setObjectIdPath(int index, int value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The objectIdPath to set.

Returns
TypeDescription
ObjectId.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ObjectId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ObjectId.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectId.Builder
Overrides