Class AttributeTypeAndValue.Builder (2.72.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.72.0keyboard_arrow_down
public static final class AttributeTypeAndValue . Builder extends GeneratedMessageV3 . 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeTypeAndValue . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AttributeTypeAndValue build ()
buildPartial()
public AttributeTypeAndValue buildPartial ()
clear()
public AttributeTypeAndValue . Builder clear ()
Overrides
clearAttributeType()
public AttributeTypeAndValue . Builder clearAttributeType ()
clearField(Descriptors.FieldDescriptor field)
public AttributeTypeAndValue . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeTypeAndValue . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearType()
public AttributeTypeAndValue . Builder clearType ()
The attribute type of the attribute and value pair.
.google.cloud.security.privateca.v1.AttributeType type = 1;
clearValue()
public AttributeTypeAndValue . Builder clearValue ()
The value for the attribute type.
string value = 3;
clone()
public AttributeTypeAndValue . Builder clone ()
Overrides
getAttributeTypeCase()
public AttributeTypeAndValue . AttributeTypeCase getAttributeTypeCase ()
getDefaultInstanceForType()
public AttributeTypeAndValue getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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;
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;
getType()
public AttributeType getType ()
The attribute type of the attribute and value pair.
.google.cloud.security.privateca.v1.AttributeType type = 1;
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()
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()
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AttributeTypeAndValue other)
public AttributeTypeAndValue . Builder mergeFrom ( AttributeTypeAndValue other )
public AttributeTypeAndValue . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AttributeTypeAndValue . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeTypeAndValue . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeTypeAndValue . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
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
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeTypeAndValue . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
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;
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeTypeAndValue . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
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.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[]]