Class SubmissionPayload.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SubmissionPayload.Builder>
-
- app.coronawarn.server.common.protocols.internal.SubmissionPayload.Builder
-
- All Implemented Interfaces:
SubmissionPayloadOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SubmissionPayload
public static final class SubmissionPayload.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubmissionPayload.Builder> implements SubmissionPayloadOrBuilder
Protobuf typeapp.coronawarn.server.common.protocols.internal.SubmissionPayload
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionPayload.Builder
addAllKeys(Iterable<? extends TemporaryExposureKey> values)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
addAllVisitedCountries(Iterable<String> values)
repeated string visitedCountries = 3;
SubmissionPayload.Builder
addKeys(int index, TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
addKeys(int index, TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
addKeys(TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
addKeys(TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
TemporaryExposureKey.Builder
addKeysBuilder()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
TemporaryExposureKey.Builder
addKeysBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SubmissionPayload.Builder
addVisitedCountries(String value)
repeated string visitedCountries = 3;
SubmissionPayload.Builder
addVisitedCountriesBytes(com.google.protobuf.ByteString value)
repeated string visitedCountries = 3;
SubmissionPayload
build()
SubmissionPayload
buildPartial()
SubmissionPayload.Builder
clear()
SubmissionPayload.Builder
clearConsentToFederation()
optional bool consentToFederation = 5;
SubmissionPayload.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SubmissionPayload.Builder
clearKeys()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SubmissionPayload.Builder
clearOrigin()
optional string origin = 4;
SubmissionPayload.Builder
clearRequestPadding()
optional bytes requestPadding = 2;
SubmissionPayload.Builder
clearVisitedCountries()
repeated string visitedCountries = 3;
SubmissionPayload.Builder
clone()
boolean
getConsentToFederation()
optional bool consentToFederation = 5;
SubmissionPayload
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
TemporaryExposureKey
getKeys(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
TemporaryExposureKey.Builder
getKeysBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
List<TemporaryExposureKey.Builder>
getKeysBuilderList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
int
getKeysCount()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
List<TemporaryExposureKey>
getKeysList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
TemporaryExposureKeyOrBuilder
getKeysOrBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
List<? extends TemporaryExposureKeyOrBuilder>
getKeysOrBuilderList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
String
getOrigin()
optional string origin = 4;
com.google.protobuf.ByteString
getOriginBytes()
optional string origin = 4;
com.google.protobuf.ByteString
getRequestPadding()
optional bytes requestPadding = 2;
String
getVisitedCountries(int index)
repeated string visitedCountries = 3;
com.google.protobuf.ByteString
getVisitedCountriesBytes(int index)
repeated string visitedCountries = 3;
int
getVisitedCountriesCount()
repeated string visitedCountries = 3;
com.google.protobuf.ProtocolStringList
getVisitedCountriesList()
repeated string visitedCountries = 3;
boolean
hasConsentToFederation()
optional bool consentToFederation = 5;
boolean
hasOrigin()
optional string origin = 4;
boolean
hasRequestPadding()
optional bytes requestPadding = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SubmissionPayload.Builder
mergeFrom(SubmissionPayload other)
SubmissionPayload.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SubmissionPayload.Builder
mergeFrom(com.google.protobuf.Message other)
SubmissionPayload.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SubmissionPayload.Builder
removeKeys(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
setConsentToFederation(boolean value)
optional bool consentToFederation = 5;
SubmissionPayload.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SubmissionPayload.Builder
setKeys(int index, TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
setKeys(int index, TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
SubmissionPayload.Builder
setOrigin(String value)
optional string origin = 4;
SubmissionPayload.Builder
setOriginBytes(com.google.protobuf.ByteString value)
optional string origin = 4;
SubmissionPayload.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SubmissionPayload.Builder
setRequestPadding(com.google.protobuf.ByteString value)
optional bytes requestPadding = 2;
SubmissionPayload.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SubmissionPayload.Builder
setVisitedCountries(int index, String value)
repeated string visitedCountries = 3;
-
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<SubmissionPayload.Builder>
-
clear
public SubmissionPayload.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<SubmissionPayload.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<SubmissionPayload.Builder>
-
getDefaultInstanceForType
public SubmissionPayload getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SubmissionPayload build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SubmissionPayload buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SubmissionPayload.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<SubmissionPayload.Builder>
-
setField
public SubmissionPayload.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<SubmissionPayload.Builder>
-
clearField
public SubmissionPayload.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<SubmissionPayload.Builder>
-
clearOneof
public SubmissionPayload.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<SubmissionPayload.Builder>
-
setRepeatedField
public SubmissionPayload.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<SubmissionPayload.Builder>
-
addRepeatedField
public SubmissionPayload.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<SubmissionPayload.Builder>
-
mergeFrom
public SubmissionPayload.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SubmissionPayload.Builder>
-
mergeFrom
public SubmissionPayload.Builder mergeFrom(SubmissionPayload other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubmissionPayload.Builder>
-
mergeFrom
public SubmissionPayload.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<SubmissionPayload.Builder>
- Throws:
IOException
-
getKeysList
public List<TemporaryExposureKey> getKeysList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
- Specified by:
getKeysList
in interfaceSubmissionPayloadOrBuilder
-
getKeysCount
public int getKeysCount()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
- Specified by:
getKeysCount
in interfaceSubmissionPayloadOrBuilder
-
getKeys
public TemporaryExposureKey getKeys(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
- Specified by:
getKeys
in interfaceSubmissionPayloadOrBuilder
-
setKeys
public SubmissionPayload.Builder setKeys(int index, TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
setKeys
public SubmissionPayload.Builder setKeys(int index, TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addKeys
public SubmissionPayload.Builder addKeys(TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addKeys
public SubmissionPayload.Builder addKeys(int index, TemporaryExposureKey value)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addKeys
public SubmissionPayload.Builder addKeys(TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addKeys
public SubmissionPayload.Builder addKeys(int index, TemporaryExposureKey.Builder builderForValue)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addAllKeys
public SubmissionPayload.Builder addAllKeys(Iterable<? extends TemporaryExposureKey> values)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
clearKeys
public SubmissionPayload.Builder clearKeys()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
removeKeys
public SubmissionPayload.Builder removeKeys(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
getKeysBuilder
public TemporaryExposureKey.Builder getKeysBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
getKeysOrBuilder
public TemporaryExposureKeyOrBuilder getKeysOrBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
- Specified by:
getKeysOrBuilder
in interfaceSubmissionPayloadOrBuilder
-
getKeysOrBuilderList
public List<? extends TemporaryExposureKeyOrBuilder> getKeysOrBuilderList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
- Specified by:
getKeysOrBuilderList
in interfaceSubmissionPayloadOrBuilder
-
addKeysBuilder
public TemporaryExposureKey.Builder addKeysBuilder()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
addKeysBuilder
public TemporaryExposureKey.Builder addKeysBuilder(int index)
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
getKeysBuilderList
public List<TemporaryExposureKey.Builder> getKeysBuilderList()
repeated .app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey keys = 1;
-
hasRequestPadding
public boolean hasRequestPadding()
optional bytes requestPadding = 2;
- Specified by:
hasRequestPadding
in interfaceSubmissionPayloadOrBuilder
- Returns:
- Whether the requestPadding field is set.
-
getRequestPadding
public com.google.protobuf.ByteString getRequestPadding()
optional bytes requestPadding = 2;
- Specified by:
getRequestPadding
in interfaceSubmissionPayloadOrBuilder
- Returns:
- The requestPadding.
-
setRequestPadding
public SubmissionPayload.Builder setRequestPadding(com.google.protobuf.ByteString value)
optional bytes requestPadding = 2;
- Parameters:
value
- The requestPadding to set.- Returns:
- This builder for chaining.
-
clearRequestPadding
public SubmissionPayload.Builder clearRequestPadding()
optional bytes requestPadding = 2;
- Returns:
- This builder for chaining.
-
getVisitedCountriesList
public com.google.protobuf.ProtocolStringList getVisitedCountriesList()
repeated string visitedCountries = 3;
- Specified by:
getVisitedCountriesList
in interfaceSubmissionPayloadOrBuilder
- Returns:
- A list containing the visitedCountries.
-
getVisitedCountriesCount
public int getVisitedCountriesCount()
repeated string visitedCountries = 3;
- Specified by:
getVisitedCountriesCount
in interfaceSubmissionPayloadOrBuilder
- Returns:
- The count of visitedCountries.
-
getVisitedCountries
public String getVisitedCountries(int index)
repeated string visitedCountries = 3;
- Specified by:
getVisitedCountries
in interfaceSubmissionPayloadOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The visitedCountries at the given index.
-
getVisitedCountriesBytes
public com.google.protobuf.ByteString getVisitedCountriesBytes(int index)
repeated string visitedCountries = 3;
- Specified by:
getVisitedCountriesBytes
in interfaceSubmissionPayloadOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the visitedCountries at the given index.
-
setVisitedCountries
public SubmissionPayload.Builder setVisitedCountries(int index, String value)
repeated string visitedCountries = 3;
- Parameters:
index
- The index to set the value at.value
- The visitedCountries to set.- Returns:
- This builder for chaining.
-
addVisitedCountries
public SubmissionPayload.Builder addVisitedCountries(String value)
repeated string visitedCountries = 3;
- Parameters:
value
- The visitedCountries to add.- Returns:
- This builder for chaining.
-
addAllVisitedCountries
public SubmissionPayload.Builder addAllVisitedCountries(Iterable<String> values)
repeated string visitedCountries = 3;
- Parameters:
values
- The visitedCountries to add.- Returns:
- This builder for chaining.
-
clearVisitedCountries
public SubmissionPayload.Builder clearVisitedCountries()
repeated string visitedCountries = 3;
- Returns:
- This builder for chaining.
-
addVisitedCountriesBytes
public SubmissionPayload.Builder addVisitedCountriesBytes(com.google.protobuf.ByteString value)
repeated string visitedCountries = 3;
- Parameters:
value
- The bytes of the visitedCountries to add.- Returns:
- This builder for chaining.
-
hasOrigin
public boolean hasOrigin()
optional string origin = 4;
- Specified by:
hasOrigin
in interfaceSubmissionPayloadOrBuilder
- Returns:
- Whether the origin field is set.
-
getOrigin
public String getOrigin()
optional string origin = 4;
- Specified by:
getOrigin
in interfaceSubmissionPayloadOrBuilder
- Returns:
- The origin.
-
getOriginBytes
public com.google.protobuf.ByteString getOriginBytes()
optional string origin = 4;
- Specified by:
getOriginBytes
in interfaceSubmissionPayloadOrBuilder
- Returns:
- The bytes for origin.
-
setOrigin
public SubmissionPayload.Builder setOrigin(String value)
optional string origin = 4;
- Parameters:
value
- The origin to set.- Returns:
- This builder for chaining.
-
clearOrigin
public SubmissionPayload.Builder clearOrigin()
optional string origin = 4;
- Returns:
- This builder for chaining.
-
setOriginBytes
public SubmissionPayload.Builder setOriginBytes(com.google.protobuf.ByteString value)
optional string origin = 4;
- Parameters:
value
- The bytes for origin to set.- Returns:
- This builder for chaining.
-
hasConsentToFederation
public boolean hasConsentToFederation()
optional bool consentToFederation = 5;
- Specified by:
hasConsentToFederation
in interfaceSubmissionPayloadOrBuilder
- Returns:
- Whether the consentToFederation field is set.
-
getConsentToFederation
public boolean getConsentToFederation()
optional bool consentToFederation = 5;
- Specified by:
getConsentToFederation
in interfaceSubmissionPayloadOrBuilder
- Returns:
- The consentToFederation.
-
setConsentToFederation
public SubmissionPayload.Builder setConsentToFederation(boolean value)
optional bool consentToFederation = 5;
- Parameters:
value
- The consentToFederation to set.- Returns:
- This builder for chaining.
-
clearConsentToFederation
public SubmissionPayload.Builder clearConsentToFederation()
optional bool consentToFederation = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SubmissionPayload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubmissionPayload.Builder>
-
mergeUnknownFields
public final SubmissionPayload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubmissionPayload.Builder>
-
-