Class SignatureInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
- app.coronawarn.server.common.protocols.external.exposurenotification.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 typeapp.coronawarn.server.common.protocols.external.exposurenotification.SignatureInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SignatureInfo
build()
SignatureInfo
buildPartial()
SignatureInfo.Builder
clear()
SignatureInfo.Builder
clearAndroidPackage()
Android app package name.SignatureInfo.Builder
clearAppBundleId()
App Store app bundle ID.SignatureInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SignatureInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SignatureInfo.Builder
clearSignatureAlgorithm()
All keys must be signed using the SHA-256 with ECDSA algorithm.SignatureInfo.Builder
clearVerificationKeyId()
Three-digit mobile country code (MCC) for validating the key file.SignatureInfo.Builder
clearVerificationKeyVersion()
Key version in case the EN server signing key is rotated.SignatureInfo.Builder
clone()
String
getAndroidPackage()
Android app package name.com.google.protobuf.ByteString
getAndroidPackageBytes()
Android app package name.String
getAppBundleId()
App Store app bundle ID.com.google.protobuf.ByteString
getAppBundleIdBytes()
App Store app bundle ID.SignatureInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getSignatureAlgorithm()
All keys must be signed using the SHA-256 with ECDSA algorithm.com.google.protobuf.ByteString
getSignatureAlgorithmBytes()
All keys must be signed using the SHA-256 with ECDSA algorithm.String
getVerificationKeyId()
Three-digit mobile country code (MCC) for validating the key file.com.google.protobuf.ByteString
getVerificationKeyIdBytes()
Three-digit mobile country code (MCC) for validating the key file.String
getVerificationKeyVersion()
Key version in case the EN server signing key is rotated.com.google.protobuf.ByteString
getVerificationKeyVersionBytes()
Key version in case the EN server signing key is rotated.boolean
hasAndroidPackage()
Android app package name.boolean
hasAppBundleId()
App Store app bundle ID.boolean
hasSignatureAlgorithm()
All keys must be signed using the SHA-256 with ECDSA algorithm.boolean
hasVerificationKeyId()
Three-digit mobile country code (MCC) for validating the key file.boolean
hasVerificationKeyVersion()
Key version in case the EN server signing key is rotated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SignatureInfo.Builder
mergeFrom(SignatureInfo other)
SignatureInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureInfo.Builder
mergeFrom(com.google.protobuf.Message other)
SignatureInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SignatureInfo.Builder
setAndroidPackage(String value)
Android app package name.SignatureInfo.Builder
setAndroidPackageBytes(com.google.protobuf.ByteString value)
Android app package name.SignatureInfo.Builder
setAppBundleId(String value)
App Store app bundle ID.SignatureInfo.Builder
setAppBundleIdBytes(com.google.protobuf.ByteString value)
App Store app bundle ID.SignatureInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SignatureInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SignatureInfo.Builder
setSignatureAlgorithm(String value)
All keys must be signed using the SHA-256 with ECDSA algorithm.SignatureInfo.Builder
setSignatureAlgorithmBytes(com.google.protobuf.ByteString value)
All keys must be signed using the SHA-256 with ECDSA algorithm.SignatureInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SignatureInfo.Builder
setVerificationKeyId(String value)
Three-digit mobile country code (MCC) for validating the key file.SignatureInfo.Builder
setVerificationKeyIdBytes(com.google.protobuf.ByteString value)
Three-digit mobile country code (MCC) for validating the key file.SignatureInfo.Builder
setVerificationKeyVersion(String value)
Key version in case the EN server signing key is rotated.SignatureInfo.Builder
setVerificationKeyVersionBytes(com.google.protobuf.ByteString value)
Key version in case the EN server signing key is rotated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
clear
public SignatureInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
getDefaultInstanceForType
public SignatureInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SignatureInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SignatureInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SignatureInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
setField
public SignatureInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
clearField
public SignatureInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
clearOneof
public SignatureInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
addRepeatedField
public SignatureInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
mergeFrom
public SignatureInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SignatureInfo.Builder>
-
mergeFrom
public SignatureInfo.Builder mergeFrom(SignatureInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceSignatureInfoOrBuilder
- Returns:
- Whether the appBundleId field is set.
-
getAppBundleId
public String getAppBundleId()
App Store app bundle ID.
optional string app_bundle_id = 1;
- Specified by:
getAppBundleId
in interfaceSignatureInfoOrBuilder
- Returns:
- The appBundleId.
-
getAppBundleIdBytes
public com.google.protobuf.ByteString getAppBundleIdBytes()
App Store app bundle ID.
optional string app_bundle_id = 1;
- Specified by:
getAppBundleIdBytes
in interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- Returns:
- Whether the androidPackage field is set.
-
getAndroidPackage
public String getAndroidPackage()
Android app package name.
optional string android_package = 2;
- Specified by:
getAndroidPackage
in interfaceSignatureInfoOrBuilder
- Returns:
- The androidPackage.
-
getAndroidPackageBytes
public com.google.protobuf.ByteString getAndroidPackageBytes()
Android app package name.
optional string android_package = 2;
- Specified by:
getAndroidPackageBytes
in interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfaceSignatureInfoOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
mergeUnknownFields
public final SignatureInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SignatureInfo.Builder>
-
-