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:
@@ -320,11 +320,11 @@ func (m *Resource) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_Resource proto.InternalMessageInfo
|
||||
|
||||
type AddResourceRequest struct {
|
||||
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Resource Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AddResourceRequest) Reset() { *m = AddResourceRequest{} }
|
||||
@@ -360,11 +360,11 @@ func (m *AddResourceRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_AddResourceRequest proto.InternalMessageInfo
|
||||
|
||||
type DeleteResourceRequest struct {
|
||||
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Resource Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteResourceRequest) Reset() { *m = DeleteResourceRequest{} }
|
||||
@@ -439,10 +439,10 @@ func (m *ListResourcesRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_ListResourcesRequest proto.InternalMessageInfo
|
||||
|
||||
type ListResourcesResponse struct {
|
||||
Resources []Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListResourcesResponse) Reset() { *m = ListResourcesResponse{} }
|
||||
@@ -498,47 +498,46 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_fefd70dfe8d93cbf = []byte{
|
||||
// 631 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xdf, 0x6b, 0xd3, 0x50,
|
||||
0x14, 0xc7, 0x97, 0xb6, 0x8b, 0xeb, 0x89, 0x1b, 0x72, 0xd9, 0x46, 0x89, 0x98, 0x95, 0x20, 0xac,
|
||||
0xf8, 0x23, 0x71, 0xdd, 0x90, 0xfd, 0x10, 0x61, 0xb5, 0x03, 0x87, 0x45, 0x24, 0xf8, 0x30, 0x7c,
|
||||
0x70, 0xa4, 0xc9, 0x5d, 0x0d, 0xa6, 0x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, 0x41, 0xf5,
|
||||
0x9d, 0xf9, 0x4c, 0x7c, 0x6a, 0xb5, 0x93, 0xc1, 0xa5, 0xb1, 0xf0, 0xe3, 0xd2, 0x58, 0xf8, 0x32,
|
||||
0x34, 0x94, 0xc1, 0xd0, 0x50, 0xbe, 0x0d, 0x0d, 0xe5, 0xd7, 0xd0, 0x50, 0xde, 0x3d, 0xff, 0xcb,
|
||||
0x7f, 0xe2, 0x03, 0x1e, 0x35, 0x55, 0xd6, 0xe5, 0xf6, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x72,
|
||||
0xbb, 0x87, 0xeb, 0xd2, 0x07, 0x00, 0x00,
|
||||
// 623 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4b, 0x6b, 0xdb, 0x4c,
|
||||
0x14, 0x8d, 0xec, 0x44, 0x9f, 0x7d, 0xf5, 0x39, 0x94, 0xc1, 0x09, 0x46, 0xa5, 0x8a, 0x11, 0x85,
|
||||
0x98, 0x3e, 0xa4, 0xda, 0x09, 0x25, 0x8f, 0x52, 0x48, 0x62, 0x43, 0x0b, 0xa6, 0x14, 0xd1, 0x45,
|
||||
0xe8, 0x22, 0x41, 0x96, 0x26, 0xae, 0xa8, 0x6c, 0x29, 0x9a, 0xb1, 0xc1, 0x5d, 0xf5, 0x47, 0xf5,
|
||||
0x47, 0x64, 0xd9, 0x55, 0xe9, 0xaa, 0x6d, 0xfc, 0x4b, 0x8a, 0xe7, 0x11, 0x3f, 0x42, 0x22, 0xa5,
|
||||
0x94, 0xee, 0xee, 0x58, 0xe7, 0xdc, 0x7b, 0xee, 0x99, 0x23, 0x19, 0x9a, 0xdd, 0x80, 0x7e, 0x18,
|
||||
0x74, 0x2c, 0x2f, 0xea, 0xd9, 0x5e, 0xd4, 0xa7, 0x6e, 0xd0, 0xc7, 0x89, 0x3f, 0x5b, 0xba, 0x71,
|
||||
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0x86,
|
||||
0x03, 0xcc, 0x04, 0x16, 0x1d, 0x7e, 0xd8, 0xcb, 0xed, 0x28, 0xe6, 0x17, 0x05, 0x4a, 0x47, 0x4c,
|
||||
0x92, 0x83, 0xcf, 0x07, 0x98, 0xd0, 0x1b, 0x37, 0x7d, 0xbb, 0x20, 0x77, 0x27, 0x45, 0xee, 0x5c,
|
||||
0xd7, 0xbf, 0x2d, 0xbb, 0x0d, 0xab, 0xb2, 0x3f, 0x89, 0xa3, 0x3e, 0xc1, 0x68, 0x0f, 0x56, 0xd8,
|
||||
0x6c, 0xc6, 0xd7, 0x1a, 0x0f, 0xb3, 0x98, 0xe9, 0x70, 0x8a, 0xb9, 0x0f, 0xa5, 0x26, 0x0e, 0x71,
|
||||
0xba, 0x07, 0x08, 0x96, 0xc9, 0xa8, 0xef, 0x31, 0x3d, 0x05, 0x87, 0xd5, 0xe6, 0x26, 0x68, 0xed,
|
||||
0x80, 0x50, 0x49, 0xad, 0xc0, 0x7f, 0x67, 0x41, 0x48, 0x71, 0x42, 0x2a, 0x4a, 0x35, 0x5f, 0x2b,
|
||||
0x3a, 0xf2, 0x68, 0xb6, 0xe1, 0x7f, 0x0e, 0x14, 0x8a, 0x5f, 0x80, 0xca, 0xf5, 0x30, 0x60, 0x56,
|
||||
0xc9, 0x82, 0x63, 0x3e, 0x87, 0x82, 0x83, 0x49, 0x34, 0x48, 0x3c, 0x7c, 0x9b, 0x5c, 0x3a, 0x8a,
|
||||
0xa5, 0x7d, 0xac, 0x36, 0xcf, 0x01, 0x1d, 0xf8, 0xbe, 0xa4, 0xa6, 0x2d, 0x7c, 0x04, 0x85, 0x44,
|
||||
0x40, 0x45, 0xb8, 0x37, 0x53, 0x54, 0x5e, 0x75, 0xbe, 0x22, 0x9a, 0x14, 0xd6, 0xa4, 0xbd, 0xff,
|
||||
0x70, 0xaa, 0x05, 0x65, 0x61, 0x37, 0x3b, 0x93, 0x94, 0xa1, 0xe6, 0x09, 0xac, 0x2d, 0xe0, 0xc5,
|
||||
0x3d, 0xb5, 0xa0, 0x28, 0x9b, 0xca, 0xab, 0xca, 0x2c, 0x67, 0xca, 0x6c, 0x7c, 0x5b, 0x06, 0x95,
|
||||
0x5d, 0x21, 0x41, 0x18, 0x54, 0x9e, 0x5e, 0xf4, 0xe4, 0x2e, 0x2f, 0x91, 0xfe, 0x34, 0x23, 0x5a,
|
||||
0x08, 0x7f, 0x03, 0x2a, 0xf7, 0x3d, 0x75, 0xcc, 0x5c, 0xfa, 0xf5, 0xf5, 0x6b, 0xdf, 0xaf, 0xd6,
|
||||
0xe4, 0xa3, 0x89, 0x4e, 0x61, 0x79, 0xe2, 0x10, 0x7a, 0x94, 0x16, 0xd4, 0xe9, 0xeb, 0xa0, 0x3f,
|
||||
0xce, 0x84, 0x15, 0x82, 0x8f, 0x41, 0x9b, 0xc9, 0x26, 0xaa, 0xa7, 0x70, 0xaf, 0xe7, 0xf8, 0x46,
|
||||
0xe9, 0x27, 0xb0, 0x3a, 0x1f, 0x41, 0xb4, 0x9d, 0xd1, 0x92, 0x6c, 0xfd, 0x3f, 0x41, 0x69, 0x2e,
|
||||
0x3c, 0x68, 0x2b, 0xdb, 0xde, 0x73, 0xd1, 0xd4, 0xb7, 0xef, 0x46, 0xe2, 0xae, 0x1d, 0x1e, 0x5f,
|
||||
0x5c, 0x1a, 0x4b, 0xdf, 0x2f, 0x8d, 0xa5, 0xcf, 0x63, 0x43, 0xb9, 0x18, 0x1b, 0xca, 0xd7, 0xb1,
|
||||
0xa1, 0xfc, 0x1a, 0x1b, 0xca, 0xfb, 0x97, 0x7f, 0xf8, 0xbf, 0xbb, 0xcf, 0xab, 0x8e, 0xca, 0xb6,
|
||||
0xdc, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xfe, 0x71, 0xc0, 0xc0, 0x07, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -1164,16 +1163,18 @@ func (m *AddResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i -= len(m.XXX_unrecognized)
|
||||
copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
{
|
||||
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
if m.Resource != nil {
|
||||
{
|
||||
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintLeases(dAtA, i, uint64(size))
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintLeases(dAtA, i, uint64(size))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
if len(m.ID) > 0 {
|
||||
i -= len(m.ID)
|
||||
copy(dAtA[i:], m.ID)
|
||||
@@ -1208,16 +1209,18 @@ func (m *DeleteResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i -= len(m.XXX_unrecognized)
|
||||
copy(dAtA[i:], m.XXX_unrecognized)
|
||||
}
|
||||
{
|
||||
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
if m.Resource != nil {
|
||||
{
|
||||
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintLeases(dAtA, i, uint64(size))
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintLeases(dAtA, i, uint64(size))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
if len(m.ID) > 0 {
|
||||
i -= len(m.ID)
|
||||
copy(dAtA[i:], m.ID)
|
||||
@@ -1467,8 +1470,10 @@ func (m *AddResourceRequest) Size() (n int) {
|
||||
if l > 0 {
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
}
|
||||
l = m.Resource.Size()
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
if m.Resource != nil {
|
||||
l = m.Resource.Size()
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
@@ -1485,8 +1490,10 @@ func (m *DeleteResourceRequest) Size() (n int) {
|
||||
if l > 0 {
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
}
|
||||
l = m.Resource.Size()
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
if m.Resource != nil {
|
||||
l = m.Resource.Size()
|
||||
n += 1 + l + sovLeases(uint64(l))
|
||||
}
|
||||
if m.XXX_unrecognized != nil {
|
||||
n += len(m.XXX_unrecognized)
|
||||
}
|
||||
@@ -1646,7 +1653,7 @@ func (this *AddResourceRequest) String() string {
|
||||
}
|
||||
s := strings.Join([]string{`&AddResourceRequest{`,
|
||||
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
|
||||
`Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "Resource", "Resource", 1), `&`, ``, 1) + `,`,
|
||||
`Resource:` + strings.Replace(this.Resource.String(), "Resource", "Resource", 1) + `,`,
|
||||
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
||||
`}`,
|
||||
}, "")
|
||||
@@ -1658,7 +1665,7 @@ func (this *DeleteResourceRequest) String() string {
|
||||
}
|
||||
s := strings.Join([]string{`&DeleteResourceRequest{`,
|
||||
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
|
||||
`Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "Resource", "Resource", 1), `&`, ``, 1) + `,`,
|
||||
`Resource:` + strings.Replace(this.Resource.String(), "Resource", "Resource", 1) + `,`,
|
||||
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
||||
`}`,
|
||||
}, "")
|
||||
@@ -1679,9 +1686,9 @@ func (this *ListResourcesResponse) String() string {
|
||||
if this == nil {
|
||||
return "nil"
|
||||
}
|
||||
repeatedStringForResources := "[]Resource{"
|
||||
repeatedStringForResources := "[]*Resource{"
|
||||
for _, f := range this.Resources {
|
||||
repeatedStringForResources += strings.Replace(strings.Replace(f.String(), "Resource", "Resource", 1), `&`, ``, 1) + ","
|
||||
repeatedStringForResources += strings.Replace(f.String(), "Resource", "Resource", 1) + ","
|
||||
}
|
||||
repeatedStringForResources += "}"
|
||||
s := strings.Join([]string{`&ListResourcesResponse{`,
|
||||
@@ -2718,6 +2725,9 @@ func (m *AddResourceRequest) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Resource == nil {
|
||||
m.Resource = &Resource{}
|
||||
}
|
||||
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -2834,6 +2844,9 @@ func (m *DeleteResourceRequest) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Resource == nil {
|
||||
m.Resource = &Resource{}
|
||||
}
|
||||
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -3001,7 +3014,7 @@ func (m *ListResourcesResponse) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Resources = append(m.Resources, Resource{})
|
||||
m.Resources = append(m.Resources, &Resource{})
|
||||
if err := m.Resources[len(m.Resources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -99,13 +99,13 @@ message Resource {
|
||||
message AddResourceRequest {
|
||||
string id = 1;
|
||||
|
||||
Resource resource = 2 [(gogoproto.nullable) = false];
|
||||
Resource resource = 2;
|
||||
}
|
||||
|
||||
message DeleteResourceRequest {
|
||||
string id = 1;
|
||||
|
||||
Resource resource = 2 [(gogoproto.nullable) = false];
|
||||
Resource resource = 2;
|
||||
}
|
||||
|
||||
message ListResourcesRequest {
|
||||
@@ -113,5 +113,5 @@ message ListResourcesRequest {
|
||||
}
|
||||
|
||||
message ListResourcesResponse {
|
||||
repeated Resource resources = 1 [(gogoproto.nullable) = false];
|
||||
repeated Resource resources = 1 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user