Remove gogoproto.stdtime

This commit removes gogoproto.stdtime, since it is not supported by
Google's official toolchain
(see https://github.com/containerd/containerd/issues/6564).

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato
2022-04-18 22:12:15 +00:00
parent 26a3ab446b
commit 80b825ca2c
71 changed files with 1803 additions and 1594 deletions

View File

@@ -9,7 +9,6 @@ import (
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -19,14 +18,12 @@ import (
math_bits "math/bits"
reflect "reflect"
strings "strings"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
@@ -84,9 +81,9 @@ type Info struct {
// Size is the total number of bytes in the blob.
Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// CreatedAt provides the time at which the blob was committed.
CreatedAt time.Time `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
CreatedAt *types.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// UpdatedAt provides the time the info was last updated.
UpdatedAt time.Time `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
UpdatedAt *types.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Labels are arbitrary data on snapshots.
//
// The combined size of a key/value pair cannot exceed 4096 bytes.
@@ -510,15 +507,15 @@ func (m *ReadContentResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_ReadContentResponse proto.InternalMessageInfo
type Status struct {
StartedAt time.Time `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3,stdtime" json:"started_at"`
UpdatedAt time.Time `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
Expected string `protobuf:"bytes,6,opt,name=expected,proto3" json:"expected,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
StartedAt *types.Timestamp `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
UpdatedAt *types.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
Expected string `protobuf:"bytes,6,opt,name=expected,proto3" json:"expected,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Status) Reset() { *m = Status{} }
@@ -810,12 +807,12 @@ type WriteContentResponse struct {
//
// This must be set for stat and commit write actions. All other write
// actions may omit this.
StartedAt time.Time `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3,stdtime" json:"started_at"`
StartedAt *types.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
// UpdatedAt provides the last time of a successful write.
//
// This must be set for stat and commit write actions. All other write
// actions may omit this.
UpdatedAt time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
UpdatedAt *types.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Offset is the current committed size for the write.
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
// Total provides the current, expected total size of the write.
@@ -934,69 +931,68 @@ func init() {
}
var fileDescriptor_468430ba3e400391 = []byte{
// 989 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6e, 0x1b, 0x45,
0x18, 0xcf, 0xec, 0xae, 0x37, 0xf1, 0xe7, 0xb4, 0xb2, 0x26, 0x56, 0x65, 0x2d, 0x92, 0x63, 0x56,
0x80, 0x2c, 0x4a, 0xd7, 0xa9, 0xdb, 0x03, 0x50, 0x09, 0x70, 0x42, 0xaa, 0x46, 0x6a, 0x00, 0x6d,
0x5d, 0x82, 0x7a, 0x29, 0x63, 0x7b, 0x6c, 0x56, 0xb1, 0x77, 0xdd, 0x9d, 0xb1, 0x45, 0x38, 0xf1,
0x00, 0x1c, 0x78, 0x0f, 0xde, 0x01, 0x89, 0x5b, 0x8e, 0x1c, 0x39, 0x15, 0x9a, 0x07, 0xe0, 0x19,
0xd0, 0xcc, 0xce, 0xda, 0x5e, 0xff, 0x61, 0xd7, 0x69, 0x6e, 0x33, 0xe3, 0xef, 0xf7, 0xfd, 0xff,
0x7d, 0xdf, 0x1a, 0x1e, 0xf7, 0x3d, 0xfe, 0xc3, 0xb8, 0xed, 0x74, 0x82, 0x61, 0xbd, 0x13, 0xf8,
0x9c, 0x78, 0x3e, 0x0d, 0xbb, 0xf3, 0x47, 0x32, 0xf2, 0xea, 0x8c, 0x86, 0x13, 0xaf, 0x43, 0x99,
0x7c, 0xa7, 0x3e, 0xaf, 0x4f, 0xee, 0xc7, 0x47, 0x67, 0x14, 0x06, 0x3c, 0xc0, 0x95, 0x19, 0xc2,
0x89, 0xa5, 0x9d, 0x58,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xc2, 0xca, 0xb8, 0x80, 0xdd, 0xf9, 0x09, 0x8e,
0x33, 0xa5, 0x7e, 0x61, 0x41, 0x58, 0x0f, 0x37, 0x03, 0x29, 0xd3, 0x13, 0xc8, 0x49, 0xa6, 0xa4,
0xdb, 0x5c, 0x31, 0x06, 0xd3, 0x6d, 0xae, 0x1a, 0x6a, 0x35, 0x74, 0x80, 0xf0, 0x29, 0xe4, 0x24,
0x87, 0x71, 0x2a, 0x73, 0xe6, 0xa9, 0xbe, 0xae, 0x3b, 0x0e, 0x5f, 0x5c, 0xbe, 0xa9, 0x6c, 0xfd,
0xf5, 0xa6, 0xb2, 0xf5, 0xf3, 0x55, 0x05, 0x5d, 0x5e, 0x55, 0xd0, 0x9f, 0x57, 0x15, 0xf4, 0xcf,
0x55, 0x05, 0xbd, 0xf8, 0xe2, 0xba, 0x7f, 0xc1, 0x1e, 0xa9, 0x63, 0xdb, 0x94, 0xb6, 0x1e, 0xfc,
0x17, 0x00, 0x00, 0xff, 0xff, 0x28, 0x66, 0x30, 0x0e, 0xcd, 0x0d, 0x00, 0x00,
// 976 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcd, 0x8e, 0xdb, 0x44,
0x1c, 0xdf, 0xb1, 0x1d, 0xef, 0xe6, 0x9f, 0x6d, 0x15, 0xcd, 0x46, 0x55, 0x64, 0xa4, 0x34, 0x58,
0x80, 0x22, 0x4a, 0x9d, 0x6d, 0xda, 0x03, 0xa5, 0x12, 0x90, 0x2e, 0x5b, 0x75, 0xa5, 0x2e, 0x20,
0x37, 0x65, 0x51, 0x2f, 0x65, 0x92, 0x4c, 0x82, 0xb5, 0x89, 0x9d, 0x7a, 0x26, 0x11, 0xcb, 0x89,
0x07, 0xe0, 0xce, 0x53, 0xf0, 0x0a, 0x9c, 0xf7, 0xc8, 0x11, 0x71, 0xa8, 0xd8, 0x3c, 0x09, 0x9a,
0x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, 0x78, 0xab, 0x3b, 0xd0, 0x7a, 0xb8, 0x15, 0x27, 0x52, 0x78, 0x88, 0xf0, 0x77, 0x60, 0x46,
0x9b, 0x0c, 0x3f, 0x4a, 0x13, 0xb0, 0x6e, 0xe3, 0x59, 0x77, 0x56, 0x2a, 0xe9, 0x58, 0x7c, 0x36,
0x0a, 0x57, 0xc4, 0x5e, 0x4a, 0x77, 0x65, 0x75, 0x2f, 0xa6, 0xbb, 0xb2, 0x66, 0xe3, 0x1d, 0x22,
0x91, 0x26, 0xb5, 0xc6, 0xee, 0x67, 0x9c, 0xd7, 0x59, 0xd3, 0xb4, 0xb4, 0x1e, 0x2e, 0x60, 0x7f,
0x71, 0x5a, 0xe3, 0x4c, 0xa1, 0x5f, 0x5a, 0x06, 0xd6, 0xa3, 0xed, 0x48, 0x4a, 0xf5, 0x04, 0x72,
0xb2, 0x53, 0xd2, 0x75, 0xae, 0x19, 0x79, 0xe9, 0x3a, 0xd7, 0x0d, 0xb0, 0x1a, 0x3a, 0x44, 0xf8,
0x14, 0x72, 0xb2, 0x87, 0x71, 0x6a, 0xe7, 0x2c, 0xb6, 0xfa, 0xa6, 0xea, 0x78, 0xfa, 0xfa, 0xf2,
0xaa, 0xb2, 0xf3, 0xd7, 0x55, 0x65, 0xe7, 0x97, 0x69, 0x05, 0x5d, 0x4e, 0x2b, 0xe8, 0xcf, 0x69,
0x05, 0xfd, 0x33, 0xad, 0xa0, 0xd7, 0x5f, 0x5e, 0xf7, 0x6f, 0xd4, 0x13, 0x75, 0x6c, 0x9b, 0x52,
0xd7, 0xc3, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x54, 0x3b, 0xab, 0x0f, 0x91, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1585,22 +1581,30 @@ func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error) {
dAtA[i] = 0x2a
}
}
n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt):])
if err1 != nil {
return 0, err1
if m.UpdatedAt != nil {
{
size, err := m.UpdatedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
i -= n1
i = encodeVarintContent(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x22
n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt):])
if err2 != nil {
return 0, err2
if m.CreatedAt != nil {
{
size, err := m.CreatedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
i -= n2
i = encodeVarintContent(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x1a
if m.Size_ != 0 {
i = encodeVarintContent(dAtA, i, uint64(m.Size_))
i--
@@ -2015,22 +2019,30 @@ func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x1a
}
n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt):])
if err7 != nil {
return 0, err7
if m.UpdatedAt != nil {
{
size, err := m.UpdatedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
i -= n7
i = encodeVarintContent(dAtA, i, uint64(n7))
i--
dAtA[i] = 0x12
n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartedAt):])
if err8 != nil {
return 0, err8
if m.StartedAt != nil {
{
size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
i -= n8
i = encodeVarintContent(dAtA, i, uint64(n8))
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -2307,22 +2319,30 @@ func (m *WriteContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x20
}
n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt):])
if err10 != nil {
return 0, err10
if m.UpdatedAt != nil {
{
size, err := m.UpdatedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
i -= n10
i = encodeVarintContent(dAtA, i, uint64(n10))
i--
dAtA[i] = 0x1a
n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartedAt):])
if err11 != nil {
return 0, err11
if m.StartedAt != nil {
{
size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintContent(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
i -= n11
i = encodeVarintContent(dAtA, i, uint64(n11))
i--
dAtA[i] = 0x12
if m.Action != 0 {
i = encodeVarintContent(dAtA, i, uint64(m.Action))
i--
@@ -2389,10 +2409,14 @@ func (m *Info) Size() (n int) {
if m.Size_ != 0 {
n += 1 + sovContent(uint64(m.Size_))
}
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
n += 1 + l + sovContent(uint64(l))
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)
n += 1 + l + sovContent(uint64(l))
if m.CreatedAt != nil {
l = m.CreatedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
if m.UpdatedAt != nil {
l = m.UpdatedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
if len(m.Labels) > 0 {
for k, v := range m.Labels {
_ = k
@@ -2568,10 +2592,14 @@ func (m *Status) Size() (n int) {
}
var l int
_ = l
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartedAt)
n += 1 + l + sovContent(uint64(l))
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)
n += 1 + l + sovContent(uint64(l))
if m.StartedAt != nil {
l = m.StartedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
if m.UpdatedAt != nil {
l = m.UpdatedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
l = len(m.Ref)
if l > 0 {
n += 1 + l + sovContent(uint64(l))
@@ -2710,10 +2738,14 @@ func (m *WriteContentResponse) Size() (n int) {
if m.Action != 0 {
n += 1 + sovContent(uint64(m.Action))
}
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartedAt)
n += 1 + l + sovContent(uint64(l))
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)
n += 1 + l + sovContent(uint64(l))
if m.StartedAt != nil {
l = m.StartedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
if m.UpdatedAt != nil {
l = m.UpdatedAt.Size()
n += 1 + l + sovContent(uint64(l))
}
if m.Offset != 0 {
n += 1 + sovContent(uint64(m.Offset))
}
@@ -2769,8 +2801,8 @@ func (this *Info) String() string {
s := strings.Join([]string{`&Info{`,
`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`,
`Size_:` + fmt.Sprintf("%v", this.Size_) + `,`,
`CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`UpdatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`CreatedAt:` + strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`UpdatedAt:` + strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`Labels:` + mapStringForLabels + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
@@ -2890,8 +2922,8 @@ func (this *Status) String() string {
return "nil"
}
s := strings.Join([]string{`&Status{`,
`StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`UpdatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`StartedAt:` + strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`UpdatedAt:` + strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`Ref:` + fmt.Sprintf("%v", this.Ref) + `,`,
`Offset:` + fmt.Sprintf("%v", this.Offset) + `,`,
`Total:` + fmt.Sprintf("%v", this.Total) + `,`,
@@ -2983,8 +3015,8 @@ func (this *WriteContentResponse) String() string {
}
s := strings.Join([]string{`&WriteContentResponse{`,
`Action:` + fmt.Sprintf("%v", this.Action) + `,`,
`StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`UpdatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`StartedAt:` + strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`UpdatedAt:` + strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types.Timestamp", 1) + `,`,
`Offset:` + fmt.Sprintf("%v", this.Offset) + `,`,
`Total:` + fmt.Sprintf("%v", this.Total) + `,`,
`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`,
@@ -3121,7 +3153,10 @@ func (m *Info) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.CreatedAt == nil {
m.CreatedAt = &types.Timestamp{}
}
if err := m.CreatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -3154,7 +3189,10 @@ func (m *Info) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.UpdatedAt == nil {
m.UpdatedAt = &types.Timestamp{}
}
if err := m.UpdatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -4212,7 +4250,10 @@ func (m *Status) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.StartedAt == nil {
m.StartedAt = &types.Timestamp{}
}
if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -4245,7 +4286,10 @@ func (m *Status) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.UpdatedAt == nil {
m.UpdatedAt = &types.Timestamp{}
}
if err := m.UpdatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -5121,7 +5165,10 @@ func (m *WriteContentResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.StartedAt == nil {
m.StartedAt = &types.Timestamp{}
}
if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -5154,7 +5201,10 @@ func (m *WriteContentResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
if m.UpdatedAt == nil {
m.UpdatedAt = &types.Timestamp{}
}
if err := m.UpdatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex

View File

@@ -98,10 +98,10 @@ message Info {
int64 size = 2;
// CreatedAt provides the time at which the blob was committed.
google.protobuf.Timestamp created_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp created_at = 3;
// UpdatedAt provides the time the info was last updated.
google.protobuf.Timestamp updated_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp updated_at = 4;
// Labels are arbitrary data on snapshots.
//
@@ -179,8 +179,8 @@ message ReadContentResponse {
}
message Status {
google.protobuf.Timestamp started_at = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp updated_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp started_at = 1;
google.protobuf.Timestamp updated_at = 2;
string ref = 3;
int64 offset = 4;
int64 total = 5;
@@ -301,13 +301,13 @@ message WriteContentResponse {
//
// This must be set for stat and commit write actions. All other write
// actions may omit this.
google.protobuf.Timestamp started_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp started_at = 2;
// UpdatedAt provides the last time of a successful write.
//
// This must be set for stat and commit write actions. All other write
// actions may omit this.
google.protobuf.Timestamp updated_at = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp updated_at = 3;
// Offset is the current committed size for the write.
int64 offset = 4;