TimestampVerificationData.java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: sigstore_bundle.proto
// Protobuf Java Version: 4.30.2
package dev.sigstore.proto.bundle.v1;
/**
* <pre>
* Various timestamped counter signatures over the artifacts signature.
* Currently only RFC3161 signatures are provided. More formats may be added
* in the future.
* </pre>
*
* Protobuf type {@code dev.sigstore.bundle.v1.TimestampVerificationData}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:TimestampVerificationData.java.pb.meta")
public final class TimestampVerificationData extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:dev.sigstore.bundle.v1.TimestampVerificationData)
TimestampVerificationDataOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 30,
/* patch= */ 2,
/* suffix= */ "",
TimestampVerificationData.class.getName());
}
// Use TimestampVerificationData.newBuilder() to construct.
private TimestampVerificationData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private TimestampVerificationData() {
rfc3161Timestamps_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.sigstore.proto.bundle.v1.BundleProto.internal_static_dev_sigstore_bundle_v1_TimestampVerificationData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.sigstore.proto.bundle.v1.BundleProto.internal_static_dev_sigstore_bundle_v1_TimestampVerificationData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.sigstore.proto.bundle.v1.TimestampVerificationData.class, dev.sigstore.proto.bundle.v1.TimestampVerificationData.Builder.class);
}
public static final int RFC3161_TIMESTAMPS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp> rfc3161Timestamps_;
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
@java.lang.Override
public java.util.List<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp> getRfc3161TimestampsList() {
return rfc3161Timestamps_;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
@java.lang.Override
public java.util.List<? extends dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder>
getRfc3161TimestampsOrBuilderList() {
return rfc3161Timestamps_;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
@java.lang.Override
public int getRfc3161TimestampsCount() {
return rfc3161Timestamps_.size();
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
@java.lang.Override
public dev.sigstore.proto.common.v1.RFC3161SignedTimestamp getRfc3161Timestamps(int index) {
return rfc3161Timestamps_.get(index);
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
@java.lang.Override
public dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder getRfc3161TimestampsOrBuilder(
int index) {
return rfc3161Timestamps_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < rfc3161Timestamps_.size(); i++) {
output.writeMessage(1, rfc3161Timestamps_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < rfc3161Timestamps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, rfc3161Timestamps_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof dev.sigstore.proto.bundle.v1.TimestampVerificationData)) {
return super.equals(obj);
}
dev.sigstore.proto.bundle.v1.TimestampVerificationData other = (dev.sigstore.proto.bundle.v1.TimestampVerificationData) obj;
if (!getRfc3161TimestampsList()
.equals(other.getRfc3161TimestampsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRfc3161TimestampsCount() > 0) {
hash = (37 * hash) + RFC3161_TIMESTAMPS_FIELD_NUMBER;
hash = (53 * hash) + getRfc3161TimestampsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(dev.sigstore.proto.bundle.v1.TimestampVerificationData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Various timestamped counter signatures over the artifacts signature.
* Currently only RFC3161 signatures are provided. More formats may be added
* in the future.
* </pre>
*
* Protobuf type {@code dev.sigstore.bundle.v1.TimestampVerificationData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:dev.sigstore.bundle.v1.TimestampVerificationData)
dev.sigstore.proto.bundle.v1.TimestampVerificationDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.sigstore.proto.bundle.v1.BundleProto.internal_static_dev_sigstore_bundle_v1_TimestampVerificationData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.sigstore.proto.bundle.v1.BundleProto.internal_static_dev_sigstore_bundle_v1_TimestampVerificationData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.sigstore.proto.bundle.v1.TimestampVerificationData.class, dev.sigstore.proto.bundle.v1.TimestampVerificationData.Builder.class);
}
// Construct using dev.sigstore.proto.bundle.v1.TimestampVerificationData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (rfc3161TimestampsBuilder_ == null) {
rfc3161Timestamps_ = java.util.Collections.emptyList();
} else {
rfc3161Timestamps_ = null;
rfc3161TimestampsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.sigstore.proto.bundle.v1.BundleProto.internal_static_dev_sigstore_bundle_v1_TimestampVerificationData_descriptor;
}
@java.lang.Override
public dev.sigstore.proto.bundle.v1.TimestampVerificationData getDefaultInstanceForType() {
return dev.sigstore.proto.bundle.v1.TimestampVerificationData.getDefaultInstance();
}
@java.lang.Override
public dev.sigstore.proto.bundle.v1.TimestampVerificationData build() {
dev.sigstore.proto.bundle.v1.TimestampVerificationData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.sigstore.proto.bundle.v1.TimestampVerificationData buildPartial() {
dev.sigstore.proto.bundle.v1.TimestampVerificationData result = new dev.sigstore.proto.bundle.v1.TimestampVerificationData(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(dev.sigstore.proto.bundle.v1.TimestampVerificationData result) {
if (rfc3161TimestampsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rfc3161Timestamps_ = java.util.Collections.unmodifiableList(rfc3161Timestamps_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.rfc3161Timestamps_ = rfc3161Timestamps_;
} else {
result.rfc3161Timestamps_ = rfc3161TimestampsBuilder_.build();
}
}
private void buildPartial0(dev.sigstore.proto.bundle.v1.TimestampVerificationData result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof dev.sigstore.proto.bundle.v1.TimestampVerificationData) {
return mergeFrom((dev.sigstore.proto.bundle.v1.TimestampVerificationData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.sigstore.proto.bundle.v1.TimestampVerificationData other) {
if (other == dev.sigstore.proto.bundle.v1.TimestampVerificationData.getDefaultInstance()) return this;
if (rfc3161TimestampsBuilder_ == null) {
if (!other.rfc3161Timestamps_.isEmpty()) {
if (rfc3161Timestamps_.isEmpty()) {
rfc3161Timestamps_ = other.rfc3161Timestamps_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.addAll(other.rfc3161Timestamps_);
}
onChanged();
}
} else {
if (!other.rfc3161Timestamps_.isEmpty()) {
if (rfc3161TimestampsBuilder_.isEmpty()) {
rfc3161TimestampsBuilder_.dispose();
rfc3161TimestampsBuilder_ = null;
rfc3161Timestamps_ = other.rfc3161Timestamps_;
bitField0_ = (bitField0_ & ~0x00000001);
rfc3161TimestampsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
internalGetRfc3161TimestampsFieldBuilder() : null;
} else {
rfc3161TimestampsBuilder_.addAllMessages(other.rfc3161Timestamps_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp m =
input.readMessage(
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.parser(),
extensionRegistry);
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.add(m);
} else {
rfc3161TimestampsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp> rfc3161Timestamps_ =
java.util.Collections.emptyList();
private void ensureRfc3161TimestampsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rfc3161Timestamps_ = new java.util.ArrayList<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp>(rfc3161Timestamps_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder, dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder> rfc3161TimestampsBuilder_;
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public java.util.List<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp> getRfc3161TimestampsList() {
if (rfc3161TimestampsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rfc3161Timestamps_);
} else {
return rfc3161TimestampsBuilder_.getMessageList();
}
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public int getRfc3161TimestampsCount() {
if (rfc3161TimestampsBuilder_ == null) {
return rfc3161Timestamps_.size();
} else {
return rfc3161TimestampsBuilder_.getCount();
}
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public dev.sigstore.proto.common.v1.RFC3161SignedTimestamp getRfc3161Timestamps(int index) {
if (rfc3161TimestampsBuilder_ == null) {
return rfc3161Timestamps_.get(index);
} else {
return rfc3161TimestampsBuilder_.getMessage(index);
}
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder setRfc3161Timestamps(
int index, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp value) {
if (rfc3161TimestampsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.set(index, value);
onChanged();
} else {
rfc3161TimestampsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder setRfc3161Timestamps(
int index, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder builderForValue) {
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.set(index, builderForValue.build());
onChanged();
} else {
rfc3161TimestampsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder addRfc3161Timestamps(dev.sigstore.proto.common.v1.RFC3161SignedTimestamp value) {
if (rfc3161TimestampsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.add(value);
onChanged();
} else {
rfc3161TimestampsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder addRfc3161Timestamps(
int index, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp value) {
if (rfc3161TimestampsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.add(index, value);
onChanged();
} else {
rfc3161TimestampsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder addRfc3161Timestamps(
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder builderForValue) {
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.add(builderForValue.build());
onChanged();
} else {
rfc3161TimestampsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder addRfc3161Timestamps(
int index, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder builderForValue) {
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.add(index, builderForValue.build());
onChanged();
} else {
rfc3161TimestampsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder addAllRfc3161Timestamps(
java.lang.Iterable<? extends dev.sigstore.proto.common.v1.RFC3161SignedTimestamp> values) {
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rfc3161Timestamps_);
onChanged();
} else {
rfc3161TimestampsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder clearRfc3161Timestamps() {
if (rfc3161TimestampsBuilder_ == null) {
rfc3161Timestamps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
rfc3161TimestampsBuilder_.clear();
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public Builder removeRfc3161Timestamps(int index) {
if (rfc3161TimestampsBuilder_ == null) {
ensureRfc3161TimestampsIsMutable();
rfc3161Timestamps_.remove(index);
onChanged();
} else {
rfc3161TimestampsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder getRfc3161TimestampsBuilder(
int index) {
return internalGetRfc3161TimestampsFieldBuilder().getBuilder(index);
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder getRfc3161TimestampsOrBuilder(
int index) {
if (rfc3161TimestampsBuilder_ == null) {
return rfc3161Timestamps_.get(index); } else {
return rfc3161TimestampsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public java.util.List<? extends dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder>
getRfc3161TimestampsOrBuilderList() {
if (rfc3161TimestampsBuilder_ != null) {
return rfc3161TimestampsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rfc3161Timestamps_);
}
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder addRfc3161TimestampsBuilder() {
return internalGetRfc3161TimestampsFieldBuilder().addBuilder(
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.getDefaultInstance());
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder addRfc3161TimestampsBuilder(
int index) {
return internalGetRfc3161TimestampsFieldBuilder().addBuilder(
index, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.getDefaultInstance());
}
/**
* <pre>
* A list of RFC3161 signed timestamps provided by the user.
* This can be used when the entry has not been stored on a
* transparency log, or in conjunction for a stronger trust model.
* Clients MUST verify the hashed message in the message imprint
* against the signature in the bundle.
* </pre>
*
* <code>repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;</code>
*/
public java.util.List<dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder>
getRfc3161TimestampsBuilderList() {
return internalGetRfc3161TimestampsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder, dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder>
internalGetRfc3161TimestampsFieldBuilder() {
if (rfc3161TimestampsBuilder_ == null) {
rfc3161TimestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
dev.sigstore.proto.common.v1.RFC3161SignedTimestamp, dev.sigstore.proto.common.v1.RFC3161SignedTimestamp.Builder, dev.sigstore.proto.common.v1.RFC3161SignedTimestampOrBuilder>(
rfc3161Timestamps_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
rfc3161Timestamps_ = null;
}
return rfc3161TimestampsBuilder_;
}
// @@protoc_insertion_point(builder_scope:dev.sigstore.bundle.v1.TimestampVerificationData)
}
// @@protoc_insertion_point(class_scope:dev.sigstore.bundle.v1.TimestampVerificationData)
private static final dev.sigstore.proto.bundle.v1.TimestampVerificationData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.sigstore.proto.bundle.v1.TimestampVerificationData();
}
public static dev.sigstore.proto.bundle.v1.TimestampVerificationData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TimestampVerificationData>
PARSER = new com.google.protobuf.AbstractParser<TimestampVerificationData>() {
@java.lang.Override
public TimestampVerificationData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<TimestampVerificationData> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TimestampVerificationData> getParserForType() {
return PARSER;
}
@java.lang.Override
public dev.sigstore.proto.bundle.v1.TimestampVerificationData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}