Class AttributeTypeAndValue (2.70.0)

public final class AttributeTypeAndValue extends GeneratedMessageV3 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 Fields

OBJECT_ID_FIELD_NUMBER

public static final int OBJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AttributeTypeAndValue getDefaultInstance()
Returns
Type Description
AttributeTypeAndValue

getDescriptor()

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

newBuilder()

public static AttributeTypeAndValue.Builder newBuilder()
Returns
Type Description
AttributeTypeAndValue.Builder

newBuilder(AttributeTypeAndValue prototype)

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

parseDelimitedFrom(InputStream input)

public static AttributeTypeAndValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AttributeTypeAndValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AttributeTypeAndValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AttributeTypeAndValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AttributeTypeAndValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AttributeTypeAndValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AttributeTypeAndValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AttributeTypeAndValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AttributeTypeAndValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AttributeTypeAndValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AttributeTypeAndValue> parser()
Returns
Type Description
Parser<AttributeTypeAndValue>

Methods

equals(Object obj)

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

getAttributeTypeCase()

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

getDefaultInstanceForType()

public AttributeTypeAndValue getDefaultInstanceForType()
Returns
Type Description
AttributeTypeAndValue

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.

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

getParserForType()

public Parser<AttributeTypeAndValue> getParserForType()
Returns
Type Description
Parser<AttributeTypeAndValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 AttributeTypeAndValue.Builder newBuilderForType()
Returns
Type Description
AttributeTypeAndValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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