Package dev.sigstore.proto.common.v1
Class PublicKey.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
- dev.sigstore.proto.common.v1.PublicKey.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PublicKeyOrBuilder,java.lang.Cloneable
- Enclosing class:
- PublicKey
public static final class PublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder> implements PublicKeyOrBuilder
Protobuf typedev.sigstore.common.v1.PublicKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKeybuild()PublicKeybuildPartial()PublicKey.Builderclear()PublicKey.BuilderclearKeyDetails()Key encoding and signature algorithm to use for this key.PublicKey.BuilderclearRawBytes()DER-encoded public key, encoding method is specified by the key_details attribute.PublicKey.BuilderclearValidFor()Optional validity period for this key, *inclusive* of the endpoints.PublicKeygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PublicKeyDetailsgetKeyDetails()Key encoding and signature algorithm to use for this key.intgetKeyDetailsValue()Key encoding and signature algorithm to use for this key.com.google.protobuf.ByteStringgetRawBytes()DER-encoded public key, encoding method is specified by the key_details attribute.TimeRangegetValidFor()Optional validity period for this key, *inclusive* of the endpoints.TimeRange.BuildergetValidForBuilder()Optional validity period for this key, *inclusive* of the endpoints.TimeRangeOrBuildergetValidForOrBuilder()Optional validity period for this key, *inclusive* of the endpoints.booleanhasRawBytes()DER-encoded public key, encoding method is specified by the key_details attribute.booleanhasValidFor()Optional validity period for this key, *inclusive* of the endpoints.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PublicKey.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PublicKey.BuildermergeFrom(com.google.protobuf.Message other)PublicKey.BuildermergeFrom(PublicKey other)PublicKey.BuildermergeValidFor(TimeRange value)Optional validity period for this key, *inclusive* of the endpoints.PublicKey.BuildersetKeyDetails(PublicKeyDetails value)Key encoding and signature algorithm to use for this key.PublicKey.BuildersetKeyDetailsValue(int value)Key encoding and signature algorithm to use for this key.PublicKey.BuildersetRawBytes(com.google.protobuf.ByteString value)DER-encoded public key, encoding method is specified by the key_details attribute.PublicKey.BuildersetValidFor(TimeRange value)Optional validity period for this key, *inclusive* of the endpoints.PublicKey.BuildersetValidFor(TimeRange.Builder builderForValue)Optional validity period for this key, *inclusive* of the endpoints.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
clear
public PublicKey.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
getDefaultInstanceForType
public PublicKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PublicKey build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PublicKey buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public PublicKey.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKey.Builder>
-
mergeFrom
public PublicKey.Builder mergeFrom(PublicKey other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
mergeFrom
public PublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKey.Builder>- Throws:
java.io.IOException
-
hasRawBytes
public boolean hasRawBytes()
DER-encoded public key, encoding method is specified by the key_details attribute.
optional bytes raw_bytes = 1;- Specified by:
hasRawBytesin interfacePublicKeyOrBuilder- Returns:
- Whether the rawBytes field is set.
-
getRawBytes
public com.google.protobuf.ByteString getRawBytes()
DER-encoded public key, encoding method is specified by the key_details attribute.
optional bytes raw_bytes = 1;- Specified by:
getRawBytesin interfacePublicKeyOrBuilder- Returns:
- The rawBytes.
-
setRawBytes
public PublicKey.Builder setRawBytes(com.google.protobuf.ByteString value)
DER-encoded public key, encoding method is specified by the key_details attribute.
optional bytes raw_bytes = 1;- Parameters:
value- The rawBytes to set.- Returns:
- This builder for chaining.
-
clearRawBytes
public PublicKey.Builder clearRawBytes()
DER-encoded public key, encoding method is specified by the key_details attribute.
optional bytes raw_bytes = 1;- Returns:
- This builder for chaining.
-
getKeyDetailsValue
public int getKeyDetailsValue()
Key encoding and signature algorithm to use for this key.
.dev.sigstore.common.v1.PublicKeyDetails key_details = 2;- Specified by:
getKeyDetailsValuein interfacePublicKeyOrBuilder- Returns:
- The enum numeric value on the wire for keyDetails.
-
setKeyDetailsValue
public PublicKey.Builder setKeyDetailsValue(int value)
Key encoding and signature algorithm to use for this key.
.dev.sigstore.common.v1.PublicKeyDetails key_details = 2;- Parameters:
value- The enum numeric value on the wire for keyDetails to set.- Returns:
- This builder for chaining.
-
getKeyDetails
public PublicKeyDetails getKeyDetails()
Key encoding and signature algorithm to use for this key.
.dev.sigstore.common.v1.PublicKeyDetails key_details = 2;- Specified by:
getKeyDetailsin interfacePublicKeyOrBuilder- Returns:
- The keyDetails.
-
setKeyDetails
public PublicKey.Builder setKeyDetails(PublicKeyDetails value)
Key encoding and signature algorithm to use for this key.
.dev.sigstore.common.v1.PublicKeyDetails key_details = 2;- Parameters:
value- The keyDetails to set.- Returns:
- This builder for chaining.
-
clearKeyDetails
public PublicKey.Builder clearKeyDetails()
Key encoding and signature algorithm to use for this key.
.dev.sigstore.common.v1.PublicKeyDetails key_details = 2;- Returns:
- This builder for chaining.
-
hasValidFor
public boolean hasValidFor()
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;- Specified by:
hasValidForin interfacePublicKeyOrBuilder- Returns:
- Whether the validFor field is set.
-
getValidFor
public TimeRange getValidFor()
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;- Specified by:
getValidForin interfacePublicKeyOrBuilder- Returns:
- The validFor.
-
setValidFor
public PublicKey.Builder setValidFor(TimeRange value)
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;
-
setValidFor
public PublicKey.Builder setValidFor(TimeRange.Builder builderForValue)
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;
-
mergeValidFor
public PublicKey.Builder mergeValidFor(TimeRange value)
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;
-
clearValidFor
public PublicKey.Builder clearValidFor()
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;
-
getValidForBuilder
public TimeRange.Builder getValidForBuilder()
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;
-
getValidForOrBuilder
public TimeRangeOrBuilder getValidForOrBuilder()
Optional validity period for this key, *inclusive* of the endpoints.
optional .dev.sigstore.common.v1.TimeRange valid_for = 3;- Specified by:
getValidForOrBuilderin interfacePublicKeyOrBuilder
-
-