Remove all gogoproto extensions

This commit removes the following gogoproto extensions;

- gogoproto.nullable
- gogoproto.customename
- gogoproto.unmarshaller_all
- gogoproto.stringer_all
- gogoproto.sizer_all
- gogoproto.marshaler_all
- gogoproto.goproto_unregonized_all
- gogoproto.goproto_stringer_all
- gogoproto.goproto_getters_all

None of them are supported by Google's toolchain (see #6564).

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato
2022-04-20 03:30:52 +00:00
parent 9b33526ef6
commit 237ef0de9b
48 changed files with 1301 additions and 1246 deletions

View File

@@ -117,10 +117,10 @@ func (m *GetNamespaceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_GetNamespaceRequest proto.InternalMessageInfo
type GetNamespaceResponse struct {
Namespace Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNamespaceResponse) Reset() { *m = GetNamespaceResponse{} }
@@ -195,10 +195,10 @@ func (m *ListNamespacesRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_ListNamespacesRequest proto.InternalMessageInfo
type ListNamespacesResponse struct {
Namespaces []Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNamespacesResponse) Reset() { *m = ListNamespacesResponse{} }
@@ -234,10 +234,10 @@ func (m *ListNamespacesResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_ListNamespacesResponse proto.InternalMessageInfo
type CreateNamespaceRequest struct {
Namespace Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNamespaceRequest) Reset() { *m = CreateNamespaceRequest{} }
@@ -273,10 +273,10 @@ func (m *CreateNamespaceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_CreateNamespaceRequest proto.InternalMessageInfo
type CreateNamespaceResponse struct {
Namespace Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNamespaceResponse) Reset() { *m = CreateNamespaceResponse{} }
@@ -320,7 +320,7 @@ type UpdateNamespaceRequest struct {
// Namespace provides the target value, as declared by the mask, for the update.
//
// The namespace field must be set.
Namespace Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// UpdateMask specifies which fields to perform the update on. If empty,
// the operation applies to all fields.
//
@@ -366,10 +366,10 @@ func (m *UpdateNamespaceRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_UpdateNamespaceRequest proto.InternalMessageInfo
type UpdateNamespaceResponse struct {
Namespace Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateNamespaceResponse) Reset() { *m = UpdateNamespaceResponse{} }
@@ -462,42 +462,41 @@ func init() {
}
var fileDescriptor_8c41761eaeea4fd3 = []byte{
// 547 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xcd, 0x26, 0xc1, 0x52, 0xc6, 0x17, 0xb4, 0x04, 0x13, 0x19, 0xc9, 0x04, 0x9f, 0x8a, 0x54,
0xad, 0xd5, 0x20, 0x41, 0x3f, 0x6e, 0x85, 0xb6, 0x07, 0x0a, 0x42, 0x96, 0xb8, 0xc0, 0x01, 0x9c,
0x64, 0xe3, 0x9a, 0x38, 0xb6, 0xf1, 0xae, 0x2d, 0x45, 0x1c, 0xe0, 0xdf, 0x70, 0xe1, 0x87, 0xe4,
0xc8, 0x91, 0x13, 0x6a, 0xf3, 0x4b, 0xd0, 0xae, 0x9d, 0x38, 0x34, 0x46, 0xb8, 0x81, 0x72, 0x9b,
0xb1, 0xf7, 0xcd, 0x7b, 0x3b, 0x7a, 0xcf, 0x86, 0x67, 0xae, 0xc7, 0xcf, 0x92, 0x3e, 0x19, 0x84,
0x13, 0x6b, 0x10, 0x06, 0xdc, 0xf1, 0x02, 0x1a, 0x0f, 0x57, 0x4b, 0x27, 0xf2, 0x2c, 0x46, 0xe3,
0xd4, 0x1b, 0x50, 0x66, 0x05, 0xce, 0x84, 0xb2, 0xc8, 0x11, 0x65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xfd, 0x78, 0x7e, 0xa9, 0xed,
0xfc, 0xba, 0xd4, 0x76, 0xbe, 0xcd, 0x35, 0x72, 0x3e, 0xd7, 0xc8, 0xcf, 0xb9, 0x46, 0x2e, 0xe6,
0x1a, 0x79, 0x77, 0xfa, 0x1f, 0xbf, 0xc7, 0xe3, 0xa2, 0xb3, 0x9b, 0x92, 0xf1, 0xd1, 0xef, 0x00,
0x00, 0x00, 0xff, 0xff, 0xdb, 0x19, 0x13, 0x99, 0x6f, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -835,16 +834,18 @@ func (m *GetNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
if m.Namespace != nil {
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
i--
dAtA[i] = 0xa
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -947,16 +948,18 @@ func (m *CreateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
if m.Namespace != nil {
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
i--
dAtA[i] = 0xa
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -984,16 +987,18 @@ func (m *CreateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
if m.Namespace != nil {
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
i--
dAtA[i] = 0xa
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -1033,16 +1038,18 @@ func (m *UpdateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
i--
dAtA[i] = 0x12
}
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
if m.Namespace != nil {
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
i--
dAtA[i] = 0xa
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -1070,16 +1077,18 @@ func (m *UpdateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
if m.Namespace != nil {
{
size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
}
i -= size
i = encodeVarintNamespace(dAtA, i, uint64(size))
i--
dAtA[i] = 0xa
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
@@ -1174,8 +1183,10 @@ func (m *GetNamespaceResponse) Size() (n int) {
}
var l int
_ = l
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
if m.Namespace != nil {
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -1222,8 +1233,10 @@ func (m *CreateNamespaceRequest) Size() (n int) {
}
var l int
_ = l
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
if m.Namespace != nil {
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -1236,8 +1249,10 @@ func (m *CreateNamespaceResponse) Size() (n int) {
}
var l int
_ = l
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
if m.Namespace != nil {
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -1250,8 +1265,10 @@ func (m *UpdateNamespaceRequest) Size() (n int) {
}
var l int
_ = l
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
if m.Namespace != nil {
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
}
if m.UpdateMask != nil {
l = m.UpdateMask.Size()
n += 1 + l + sovNamespace(uint64(l))
@@ -1268,8 +1285,10 @@ func (m *UpdateNamespaceResponse) Size() (n int) {
}
var l int
_ = l
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
if m.Namespace != nil {
l = m.Namespace.Size()
n += 1 + l + sovNamespace(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -1336,7 +1355,7 @@ func (this *GetNamespaceResponse) String() string {
return "nil"
}
s := strings.Join([]string{`&GetNamespaceResponse{`,
`Namespace:` + strings.Replace(strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`,
`Namespace:` + strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
@@ -1357,9 +1376,9 @@ func (this *ListNamespacesResponse) String() string {
if this == nil {
return "nil"
}
repeatedStringForNamespaces := "[]Namespace{"
repeatedStringForNamespaces := "[]*Namespace{"
for _, f := range this.Namespaces {
repeatedStringForNamespaces += strings.Replace(strings.Replace(f.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + ","
repeatedStringForNamespaces += strings.Replace(f.String(), "Namespace", "Namespace", 1) + ","
}
repeatedStringForNamespaces += "}"
s := strings.Join([]string{`&ListNamespacesResponse{`,
@@ -1374,7 +1393,7 @@ func (this *CreateNamespaceRequest) String() string {
return "nil"
}
s := strings.Join([]string{`&CreateNamespaceRequest{`,
`Namespace:` + strings.Replace(strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`,
`Namespace:` + strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
@@ -1385,7 +1404,7 @@ func (this *CreateNamespaceResponse) String() string {
return "nil"
}
s := strings.Join([]string{`&CreateNamespaceResponse{`,
`Namespace:` + strings.Replace(strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`,
`Namespace:` + strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
@@ -1396,7 +1415,7 @@ func (this *UpdateNamespaceRequest) String() string {
return "nil"
}
s := strings.Join([]string{`&UpdateNamespaceRequest{`,
`Namespace:` + strings.Replace(strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`,
`Namespace:` + strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1) + `,`,
`UpdateMask:` + strings.Replace(fmt.Sprintf("%v", this.UpdateMask), "FieldMask", "types.FieldMask", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
@@ -1408,7 +1427,7 @@ func (this *UpdateNamespaceResponse) String() string {
return "nil"
}
s := strings.Join([]string{`&UpdateNamespaceResponse{`,
`Namespace:` + strings.Replace(strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + `,`,
`Namespace:` + strings.Replace(this.Namespace.String(), "Namespace", "Namespace", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
@@ -1784,6 +1803,9 @@ func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Namespace == nil {
m.Namespace = &Namespace{}
}
if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -1951,7 +1973,7 @@ func (m *ListNamespacesResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Namespaces = append(m.Namespaces, Namespace{})
m.Namespaces = append(m.Namespaces, &Namespace{})
if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -2036,6 +2058,9 @@ func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Namespace == nil {
m.Namespace = &Namespace{}
}
if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -2120,6 +2145,9 @@ func (m *CreateNamespaceResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Namespace == nil {
m.Namespace = &Namespace{}
}
if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -2204,6 +2232,9 @@ func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Namespace == nil {
m.Namespace = &Namespace{}
}
if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -2324,6 +2355,9 @@ func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Namespace == nil {
m.Namespace = &Namespace{}
}
if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}