Class EntityId.Builder

  • All Implemented Interfaces:
    EntityIdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    EntityId

    public static final class EntityId.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
    implements EntityIdOrBuilder
     An entity in a dataset is a field or set of fields that correspond to a
     single person. For example, in medical records the `EntityId` might be a
     patient identifier, or for financial records it might be an account
     identifier. This message is used when generalizations or analysis must take
     into account that multiple rows correspond to the same entity.
     
    Protobuf type google.privacy.dlp.v2.EntityId
    • Method Detail

      • getDescriptor

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

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

        public EntityId.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.GeneratedMessageV3.Builder<EntityId.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.GeneratedMessageV3.Builder<EntityId.Builder>
      • getDefaultInstanceForType

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

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

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

        public EntityId.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • setField

        public EntityId.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • clearField

        public EntityId.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • clearOneof

        public EntityId.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • setRepeatedField

        public EntityId.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • addRepeatedField

        public EntityId.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • mergeFrom

        public EntityId.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<EntityId.Builder>
      • isInitialized

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

        public EntityId.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<EntityId.Builder>
        Throws:
        IOException
      • hasField

        public boolean hasField()
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
        Specified by:
        hasField in interface EntityIdOrBuilder
        Returns:
        Whether the field field is set.
      • getField

        public FieldId getField()
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
        Specified by:
        getField in interface EntityIdOrBuilder
        Returns:
        The field.
      • setField

        public EntityId.Builder setField​(FieldId value)
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
      • setField

        public EntityId.Builder setField​(FieldId.Builder builderForValue)
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
      • mergeField

        public EntityId.Builder mergeField​(FieldId value)
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
      • clearField

        public EntityId.Builder clearField()
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
      • getFieldBuilder

        public FieldId.Builder getFieldBuilder()
         Composite key indicating which field contains the entity identifier.
         
        .google.privacy.dlp.v2.FieldId field = 1;
      • setUnknownFields

        public final EntityId.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>
      • mergeUnknownFields

        public final EntityId.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityId.Builder>