Class AttributeTypeAndValue.Builder (2.85.0)

public static final class AttributeTypeAndValue.Builder extends GeneratedMessage.Builder<AttributeTypeAndValue.Builder> implements AttributeTypeAndValueOrBuilder

AttributeTypeAndValue specifies an attribute type and value. It can use either a OID or enum value to specify the attribute type.

Protobuf type google.cloud.security.privateca.v1.AttributeTypeAndValue

Static Methods

getDescriptor()

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

Methods

build()

public AttributeTypeAndValue build()
Returns
Type Description
AttributeTypeAndValue

buildPartial()

public AttributeTypeAndValue buildPartial()
Returns
Type Description
AttributeTypeAndValue

clear()

public AttributeTypeAndValue.Builder clear()
Returns
Type Description
AttributeTypeAndValue.Builder
Overrides

clearAttributeType()

public AttributeTypeAndValue.Builder clearAttributeType()
Returns
Type Description
AttributeTypeAndValue.Builder

clearObjectId()

public AttributeTypeAndValue.Builder clearObjectId()

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Returns
Type Description
AttributeTypeAndValue.Builder

clearType()

public AttributeTypeAndValue.Builder clearType()

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.

clearValue()

public AttributeTypeAndValue.Builder clearValue()

The value for the attribute type.

string value = 3;

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.

getAttributeTypeCase()

public AttributeTypeAndValue.AttributeTypeCase getAttributeTypeCase()
Returns
Type Description
AttributeTypeAndValue.AttributeTypeCase

getDefaultInstanceForType()

public AttributeTypeAndValue getDefaultInstanceForType()
Returns
Type Description
AttributeTypeAndValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getObjectId()

public ObjectId getObjectId()

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Returns
Type Description
ObjectId

The objectId.

getObjectIdBuilder()

public ObjectId.Builder getObjectIdBuilder()

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Returns
Type Description
ObjectId.Builder

getObjectIdOrBuilder()

public ObjectIdOrBuilder getObjectIdOrBuilder()

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Returns
Type Description
ObjectIdOrBuilder

getType()

public AttributeType getType()

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Returns
Type Description
AttributeType

The type.

getTypeValue()

public int getTypeValue()

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getValue()

public String getValue()

The value for the attribute type.

string value = 3;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value for the attribute type.

string value = 3;

Returns
Type Description
ByteString

The bytes for value.

hasObjectId()

public boolean hasObjectId()

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Returns
Type Description
boolean

Whether the objectId field is set.

hasType()

public boolean hasType()

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttributeTypeAndValue other)

public AttributeTypeAndValue.Builder mergeFrom(AttributeTypeAndValue other)
Parameter
Name Description
other AttributeTypeAndValue
Returns
Type Description
AttributeTypeAndValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeTypeAndValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttributeTypeAndValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttributeTypeAndValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttributeTypeAndValue.Builder
Overrides

mergeObjectId(ObjectId value)

public AttributeTypeAndValue.Builder mergeObjectId(ObjectId value)

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Parameter
Name Description
value ObjectId
Returns
Type Description
AttributeTypeAndValue.Builder

setObjectId(ObjectId value)

public AttributeTypeAndValue.Builder setObjectId(ObjectId value)

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Parameter
Name Description
value ObjectId
Returns
Type Description
AttributeTypeAndValue.Builder

setObjectId(ObjectId.Builder builderForValue)

public AttributeTypeAndValue.Builder setObjectId(ObjectId.Builder builderForValue)

Object ID for an attribute type of an attribute and value pair.

.google.cloud.security.privateca.v1.ObjectId object_id = 2;

Parameter
Name Description
builderForValue ObjectId.Builder
Returns
Type Description
AttributeTypeAndValue.Builder

setType(AttributeType value)

public AttributeTypeAndValue.Builder setType(AttributeType value)

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Parameter
Name Description
value AttributeType

The type to set.

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.

setTypeValue(int value)

public AttributeTypeAndValue.Builder setTypeValue(int value)

The attribute type of the attribute and value pair.

.google.cloud.security.privateca.v1.AttributeType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.

setValue(String value)

public AttributeTypeAndValue.Builder setValue(String value)

The value for the attribute type.

string value = 3;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public AttributeTypeAndValue.Builder setValueBytes(ByteString value)

The value for the attribute type.

string value = 3;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
AttributeTypeAndValue.Builder

This builder for chaining.