Class SignatureInfo.Builder

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

    public static final class SignatureInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
    implements SignatureInfoOrBuilder
    Protobuf type app.coronawarn.server.common.protocols.external.exposurenotification.SignatureInfo
    • 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<SignatureInfo.Builder>
      • clear

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

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

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

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

        public SignatureInfo.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<SignatureInfo.Builder>
      • setField

        public SignatureInfo.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<SignatureInfo.Builder>
      • clearField

        public SignatureInfo.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<SignatureInfo.Builder>
      • clearOneof

        public SignatureInfo.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<SignatureInfo.Builder>
      • setRepeatedField

        public SignatureInfo.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<SignatureInfo.Builder>
      • addRepeatedField

        public SignatureInfo.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<SignatureInfo.Builder>
      • mergeFrom

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

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

        public SignatureInfo.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<SignatureInfo.Builder>
        Throws:
        IOException
      • hasAppBundleId

        public boolean hasAppBundleId()
         App Store app bundle ID.
         
        optional string app_bundle_id = 1;
        Specified by:
        hasAppBundleId in interface SignatureInfoOrBuilder
        Returns:
        Whether the appBundleId field is set.
      • getAppBundleIdBytes

        public com.google.protobuf.ByteString getAppBundleIdBytes()
         App Store app bundle ID.
         
        optional string app_bundle_id = 1;
        Specified by:
        getAppBundleIdBytes in interface SignatureInfoOrBuilder
        Returns:
        The bytes for appBundleId.
      • setAppBundleId

        public SignatureInfo.Builder setAppBundleId​(String value)
         App Store app bundle ID.
         
        optional string app_bundle_id = 1;
        Parameters:
        value - The appBundleId to set.
        Returns:
        This builder for chaining.
      • clearAppBundleId

        public SignatureInfo.Builder clearAppBundleId()
         App Store app bundle ID.
         
        optional string app_bundle_id = 1;
        Returns:
        This builder for chaining.
      • setAppBundleIdBytes

        public SignatureInfo.Builder setAppBundleIdBytes​(com.google.protobuf.ByteString value)
         App Store app bundle ID.
         
        optional string app_bundle_id = 1;
        Parameters:
        value - The bytes for appBundleId to set.
        Returns:
        This builder for chaining.
      • hasAndroidPackage

        public boolean hasAndroidPackage()
         Android app package name.
         
        optional string android_package = 2;
        Specified by:
        hasAndroidPackage in interface SignatureInfoOrBuilder
        Returns:
        Whether the androidPackage field is set.
      • getAndroidPackageBytes

        public com.google.protobuf.ByteString getAndroidPackageBytes()
         Android app package name.
         
        optional string android_package = 2;
        Specified by:
        getAndroidPackageBytes in interface SignatureInfoOrBuilder
        Returns:
        The bytes for androidPackage.
      • setAndroidPackage

        public SignatureInfo.Builder setAndroidPackage​(String value)
         Android app package name.
         
        optional string android_package = 2;
        Parameters:
        value - The androidPackage to set.
        Returns:
        This builder for chaining.
      • clearAndroidPackage

        public SignatureInfo.Builder clearAndroidPackage()
         Android app package name.
         
        optional string android_package = 2;
        Returns:
        This builder for chaining.
      • setAndroidPackageBytes

        public SignatureInfo.Builder setAndroidPackageBytes​(com.google.protobuf.ByteString value)
         Android app package name.
         
        optional string android_package = 2;
        Parameters:
        value - The bytes for androidPackage to set.
        Returns:
        This builder for chaining.
      • hasVerificationKeyVersion

        public boolean hasVerificationKeyVersion()
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Specified by:
        hasVerificationKeyVersion in interface SignatureInfoOrBuilder
        Returns:
        Whether the verificationKeyVersion field is set.
      • getVerificationKeyVersion

        public String getVerificationKeyVersion()
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Specified by:
        getVerificationKeyVersion in interface SignatureInfoOrBuilder
        Returns:
        The verificationKeyVersion.
      • getVerificationKeyVersionBytes

        public com.google.protobuf.ByteString getVerificationKeyVersionBytes()
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Specified by:
        getVerificationKeyVersionBytes in interface SignatureInfoOrBuilder
        Returns:
        The bytes for verificationKeyVersion.
      • setVerificationKeyVersion

        public SignatureInfo.Builder setVerificationKeyVersion​(String value)
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Parameters:
        value - The verificationKeyVersion to set.
        Returns:
        This builder for chaining.
      • clearVerificationKeyVersion

        public SignatureInfo.Builder clearVerificationKeyVersion()
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Returns:
        This builder for chaining.
      • setVerificationKeyVersionBytes

        public SignatureInfo.Builder setVerificationKeyVersionBytes​(com.google.protobuf.ByteString value)
         Key version in case the EN server signing key is rotated.
         
        optional string verification_key_version = 3;
        Parameters:
        value - The bytes for verificationKeyVersion to set.
        Returns:
        This builder for chaining.
      • hasVerificationKeyId

        public boolean hasVerificationKeyId()
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Specified by:
        hasVerificationKeyId in interface SignatureInfoOrBuilder
        Returns:
        Whether the verificationKeyId field is set.
      • getVerificationKeyId

        public String getVerificationKeyId()
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Specified by:
        getVerificationKeyId in interface SignatureInfoOrBuilder
        Returns:
        The verificationKeyId.
      • getVerificationKeyIdBytes

        public com.google.protobuf.ByteString getVerificationKeyIdBytes()
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Specified by:
        getVerificationKeyIdBytes in interface SignatureInfoOrBuilder
        Returns:
        The bytes for verificationKeyId.
      • setVerificationKeyId

        public SignatureInfo.Builder setVerificationKeyId​(String value)
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Parameters:
        value - The verificationKeyId to set.
        Returns:
        This builder for chaining.
      • clearVerificationKeyId

        public SignatureInfo.Builder clearVerificationKeyId()
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Returns:
        This builder for chaining.
      • setVerificationKeyIdBytes

        public SignatureInfo.Builder setVerificationKeyIdBytes​(com.google.protobuf.ByteString value)
         Three-digit mobile country code (MCC) for validating the key file.
         If a region has more than one MCC, the server can choose
         which MCC to use. This value does not have to match the client's MCC,
         but must correspond to one of the supported MCCs for its region.
         
        optional string verification_key_id = 4;
        Parameters:
        value - The bytes for verificationKeyId to set.
        Returns:
        This builder for chaining.
      • hasSignatureAlgorithm

        public boolean hasSignatureAlgorithm()
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Specified by:
        hasSignatureAlgorithm in interface SignatureInfoOrBuilder
        Returns:
        Whether the signatureAlgorithm field is set.
      • getSignatureAlgorithm

        public String getSignatureAlgorithm()
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Specified by:
        getSignatureAlgorithm in interface SignatureInfoOrBuilder
        Returns:
        The signatureAlgorithm.
      • getSignatureAlgorithmBytes

        public com.google.protobuf.ByteString getSignatureAlgorithmBytes()
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Specified by:
        getSignatureAlgorithmBytes in interface SignatureInfoOrBuilder
        Returns:
        The bytes for signatureAlgorithm.
      • setSignatureAlgorithm

        public SignatureInfo.Builder setSignatureAlgorithm​(String value)
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Parameters:
        value - The signatureAlgorithm to set.
        Returns:
        This builder for chaining.
      • clearSignatureAlgorithm

        public SignatureInfo.Builder clearSignatureAlgorithm()
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Returns:
        This builder for chaining.
      • setSignatureAlgorithmBytes

        public SignatureInfo.Builder setSignatureAlgorithmBytes​(com.google.protobuf.ByteString value)
         All keys must be signed using the SHA-256 with ECDSA algorithm.
         This field must contain the string "1.2.840.10045.4.3.2".
         
        optional string signature_algorithm = 5;
        Parameters:
        value - The bytes for signatureAlgorithm to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SignatureInfo.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<SignatureInfo.Builder>
      • mergeUnknownFields

        public final SignatureInfo.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<SignatureInfo.Builder>