Class PersonName

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PersonNameOrBuilder, io.spine.validate.ValidatableMessage, Serializable

    public final class PersonName
    extends com.google.protobuf.GeneratedMessageV3
    implements io.spine.validate.ValidatableMessage, PersonNameOrBuilder
     A name of a person.
     
    Protobuf type spine.people.PersonName
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PersonName.Builder
      A name of a person.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • HONORIFIC_PREFIX_FIELD_NUMBER

        public static final int HONORIFIC_PREFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GIVEN_NAME_FIELD_NUMBER

        public static final int GIVEN_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIDDLE_NAME_FIELD_NUMBER

        public static final int MIDDLE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FAMILY_NAME_FIELD_NUMBER

        public static final int FAMILY_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HONORIFIC_SUFFIX_FIELD_NUMBER

        public static final int HONORIFIC_SUFFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getHonorificPrefix

        public String getHonorificPrefix()
         The honorific prefix (such as "Dr." or "Prof.") for this person.
         
        string honorific_prefix = 1;
        Specified by:
        getHonorificPrefix in interface PersonNameOrBuilder
        Returns:
        The honorificPrefix.
      • getHonorificPrefixBytes

        public com.google.protobuf.ByteString getHonorificPrefixBytes()
         The honorific prefix (such as "Dr." or "Prof.") for this person.
         
        string honorific_prefix = 1;
        Specified by:
        getHonorificPrefixBytes in interface PersonNameOrBuilder
        Returns:
        The bytes for honorificPrefix.
      • getGivenName

        public String getGivenName()
         The given (first) name of the person.
         
        string given_name = 2;
        Specified by:
        getGivenName in interface PersonNameOrBuilder
        Returns:
        The givenName.
      • getGivenNameBytes

        public com.google.protobuf.ByteString getGivenNameBytes()
         The given (first) name of the person.
         
        string given_name = 2;
        Specified by:
        getGivenNameBytes in interface PersonNameOrBuilder
        Returns:
        The bytes for givenName.
      • getMiddleName

        public String getMiddleName()
         The middle name or the patronymic of this person.
         
        string middle_name = 3;
        Specified by:
        getMiddleName in interface PersonNameOrBuilder
        Returns:
        The middleName.
      • getMiddleNameBytes

        public com.google.protobuf.ByteString getMiddleNameBytes()
         The middle name or the patronymic of this person.
         
        string middle_name = 3;
        Specified by:
        getMiddleNameBytes in interface PersonNameOrBuilder
        Returns:
        The bytes for middleName.
      • getFamilyName

        public String getFamilyName()
         The family (last) name of the person.
         
        string family_name = 4;
        Specified by:
        getFamilyName in interface PersonNameOrBuilder
        Returns:
        The familyName.
      • getFamilyNameBytes

        public com.google.protobuf.ByteString getFamilyNameBytes()
         The family (last) name of the person.
         
        string family_name = 4;
        Specified by:
        getFamilyNameBytes in interface PersonNameOrBuilder
        Returns:
        The bytes for familyName.
      • getHonorificSuffix

        public String getHonorificSuffix()
         The honorific suffixes (such as "Jr.") for this person.
         
        string honorific_suffix = 5;
        Specified by:
        getHonorificSuffix in interface PersonNameOrBuilder
        Returns:
        The honorificSuffix.
      • getHonorificSuffixBytes

        public com.google.protobuf.ByteString getHonorificSuffixBytes()
         The honorific suffixes (such as "Jr.") for this person.
         
        string honorific_suffix = 5;
        Specified by:
        getHonorificSuffixBytes in interface PersonNameOrBuilder
        Returns:
        The bytes for honorificSuffix.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static PersonName parseFrom​(ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(ByteBuffer data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PersonName parseFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public PersonName.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PersonName.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PersonName.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • validate

        public Optional<io.spine.validate.ValidationError> validate()
        Specified by:
        validate in interface io.spine.validate.ValidatableMessage
      • getDefaultInstance

        public static PersonName getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<PersonName> parser()
      • getParserForType

        public com.google.protobuf.Parser<PersonName> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PersonName getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder