Class AttributeTypeAndValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder>
com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder
All Implemented Interfaces:
AttributeTypeAndValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AttributeTypeAndValue

public static final class AttributeTypeAndValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder> implements AttributeTypeAndValueOrBuilder
 [AttributeTypeAndValue][google.cloud.security.privateca.v1.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder>
    • getDefaultInstanceForType

      public AttributeTypeAndValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AttributeTypeAndValue build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AttributeTypeAndValue buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AttributeTypeAndValue.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeTypeAndValue.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AttributeTypeAndValue.Builder>
    • mergeFrom

      public AttributeTypeAndValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeTypeAndValue.Builder>
      Throws:
      IOException
    • getAttributeTypeCase

      public AttributeTypeAndValue.AttributeTypeCase getAttributeTypeCase()
      Specified by:
      getAttributeTypeCase in interface AttributeTypeAndValueOrBuilder
    • clearAttributeType

      public AttributeTypeAndValue.Builder clearAttributeType()
    • hasType

      public boolean hasType()
       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Specified by:
      hasType in interface AttributeTypeAndValueOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Specified by:
      getTypeValue in interface AttributeTypeAndValueOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public AttributeTypeAndValue.Builder setTypeValue(int value)
       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public AttributeType getType()
       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Specified by:
      getType in interface AttributeTypeAndValueOrBuilder
      Returns:
      The type.
    • setType

       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public AttributeTypeAndValue.Builder clearType()
       The attribute type of the attribute and value pair.
       
      .google.cloud.security.privateca.v1.AttributeType type = 1;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasObjectId in interface AttributeTypeAndValueOrBuilder
      Returns:
      Whether the objectId field is set.
    • 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;
      Specified by:
      getObjectId in interface AttributeTypeAndValueOrBuilder
      Returns:
      The objectId.
    • setObjectId

      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;
    • setObjectId

      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;
    • mergeObjectId

      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;
    • 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;
    • 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;
      Specified by:
      getObjectIdOrBuilder in interface AttributeTypeAndValueOrBuilder
    • getValue

      public String getValue()
       The value for the attribute type.
       
      string value = 3;
      Specified by:
      getValue in interface AttributeTypeAndValueOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value for the attribute type.
       
      string value = 3;
      Specified by:
      getValueBytes in interface AttributeTypeAndValueOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public AttributeTypeAndValue.Builder setValue(String value)
       The value for the attribute type.
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public AttributeTypeAndValue.Builder clearValue()
       The value for the attribute type.
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public AttributeTypeAndValue.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value for the attribute type.
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.