diff --git a/internal/db/attribute_values.go b/internal/db/attribute_values.go index 156266e223..422bdde09e 100644 --- a/internal/db/attribute_values.go +++ b/internal/db/attribute_values.go @@ -51,10 +51,10 @@ func createAttributeValueSql( return newStatementBuilder(). Insert(AttributeValueTable). Columns( - tableField(AttributeValueTable, "attribute_id"), - tableField(AttributeValueTable, "value"), - tableField(AttributeValueTable, "members"), - tableField(AttributeValueTable, "metadata"), + "attribute_definition_id", + "value", + "members", + "metadata", ). Values( attribute_id, @@ -133,7 +133,7 @@ func listAttributeValuesSql(attribute_id string) (string, []interface{}, error) tableField(AttributeValueTable, "metadata"), ). From(AttributeValueTable). - Where(sq.Eq{tableField(AttributeValueTable, "attribute_id"): attribute_id}). + Where(sq.Eq{tableField(AttributeValueTable, "attribute_definition_id"): attribute_id}). ToSql() } func (c Client) ListAttributeValues(ctx context.Context, attribute_id string) ([]*attributes.Value, error) { @@ -165,15 +165,15 @@ func updateAttributeValueSql( Update(AttributeValueTable) if value != "" { - sb = sb.Set(tableField(AttributeValueTable, "value"), value) + sb = sb.Set("value", value) } if members != nil { - sb = sb.Set(tableField(AttributeValueTable, "members"), members) + sb = sb.Set("members", members) } - sb.Set(tableField(AttributeValueTable, "metadata"), metadata) + sb.Set("metadata", metadata) return sb. - Where(sq.Eq{tableField(AttributeValueTable, "id"): id}). + Where(sq.Eq{"id": id}). ToSql() } func (c Client) UpdateAttributeValue(ctx context.Context, id string, v *attributes.ValueUpdate) (*attributes.Value, error) { diff --git a/migrations/20240118000000_create_new_tables.sql b/migrations/20240118000000_create_new_tables.sql index 4bc82f4b00..ed2e279d73 100644 --- a/migrations/20240118000000_create_new_tables.sql +++ b/migrations/20240118000000_create_new_tables.sql @@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS opentdf.attribute_values id UUID PRIMARY KEY DEFAULT gen_random_uuid(), attribute_definition_id UUID NOT NULL REFERENCES opentdf.attribute_definitions(id), value VARCHAR NOT NULL, - members UUID[] NOT NULL, + members UUID[], metadata JSONB, UNIQUE (attribute_definition_id, value) ); diff --git a/proto/attributes/attributes.proto b/proto/attributes/attributes.proto index 09df3152e3..97b68d10af 100644 --- a/proto/attributes/attributes.proto +++ b/proto/attributes/attributes.proto @@ -145,40 +145,40 @@ message DeleteAttributeResponse { /// /// Value RPC messages /// -message GetValueRequest { +message GetAttributeValueRequest { string id = 1 [(buf.validate.field).required = true]; } -message GetValueResponse { +message GetAttributeValueResponse { Value value = 1; } -message ListValuesRequest { +message ListAttributeValuesRequest { string attribute_id = 1 [(buf.validate.field).required = true]; } -message ListValuesResponse { +message ListAttributeValuesResponse { repeated Value values = 1; } -message CreateValueRequest { +message CreateAttributeValueRequest { string attribute_id = 1 [(buf.validate.field).required = true]; ValueCreate value = 2 [(buf.validate.field).required = true]; } -message CreateValueResponse { +message CreateAttributeValueResponse { Value value = 1; } -message UpdateValueRequest { +message UpdateAttributeValueRequest { string id = 1 [(buf.validate.field).required = true]; ValueUpdate value = 2 [(buf.validate.field).required = true]; } -message UpdateValueResponse { +message UpdateAttributeValueResponse { Value value = 1; } -message DeleteValueRequest { +message DeleteAttributeValueRequest { string id = 1 [(buf.validate.field).required = true]; } -message DeleteValueResponse { +message DeleteAttributeValueResponse { Value value = 1; } @@ -198,7 +198,7 @@ service AttributesService { Example: grpcurl -plaintext -d '{"attribute_id": "attribute_id"}' localhost:8080 attributes.AttributesService/ListValues */ - rpc ListAttributeValues(ListValuesRequest) returns (ListValuesResponse) {} + rpc ListAttributeValues(ListAttributeValuesRequest) returns (ListAttributeValuesResponse) {} rpc GetAttribute(GetAttributeRequest) returns (GetAttributeResponse) { option (google.api.http) = {get: "/attributes/{id}"}; @@ -226,28 +226,28 @@ service AttributesService { } /** Attribute Value **/ - rpc GetValue(GetValueRequest) returns (GetValueResponse) { + rpc GetAttributeValue(GetAttributeValueRequest) returns (GetAttributeValueResponse) { option (google.api.http) = {get: "/attributes/_/values/{id}"}; } // Create Attribute Value // Example: // grpcurl -plaintext -d '{"attribute_id": "attribute_id", "value": {"value": "value"}}' localhost:8080 attributes.AttributesService/CreateValue - rpc CreateValue(CreateValueRequest) returns (CreateValueResponse) { + rpc CreateAttributeValue(CreateAttributeValueRequest) returns (CreateAttributeValueResponse) { option (google.api.http) = { post: "/attributes/{attribute_id}/values" body: "value" }; } - rpc UpdateValue(UpdateValueRequest) returns (UpdateValueResponse) { + rpc UpdateAttributeValue(UpdateAttributeValueRequest) returns (UpdateAttributeValueResponse) { option (google.api.http) = { post: "/attributes/_/values/{id}" body: "value" }; } - rpc DeleteValue(DeleteValueRequest) returns (DeleteValueResponse) { + rpc DeleteAttributeValue(DeleteAttributeValueRequest) returns (DeleteAttributeValueResponse) { option (google.api.http) = {delete: "/attributes/_/values/{id}"}; } } diff --git a/sdk/attributes/attributes.pb.go b/sdk/attributes/attributes.pb.go index bd42a1ca6f..7e1c8aae86 100644 --- a/sdk/attributes/attributes.pb.go +++ b/sdk/attributes/attributes.pb.go @@ -1042,7 +1042,7 @@ func (x *DeleteAttributeResponse) GetAttribute() *Attribute { // / // / Value RPC messages // / -type GetValueRequest struct { +type GetAttributeValueRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1050,8 +1050,8 @@ type GetValueRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (x *GetValueRequest) Reset() { - *x = GetValueRequest{} +func (x *GetAttributeValueRequest) Reset() { + *x = GetAttributeValueRequest{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1059,13 +1059,13 @@ func (x *GetValueRequest) Reset() { } } -func (x *GetValueRequest) String() string { +func (x *GetAttributeValueRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetValueRequest) ProtoMessage() {} +func (*GetAttributeValueRequest) ProtoMessage() {} -func (x *GetValueRequest) ProtoReflect() protoreflect.Message { +func (x *GetAttributeValueRequest) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1077,19 +1077,19 @@ func (x *GetValueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetValueRequest.ProtoReflect.Descriptor instead. -func (*GetValueRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*GetAttributeValueRequest) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{17} } -func (x *GetValueRequest) GetId() string { +func (x *GetAttributeValueRequest) GetId() string { if x != nil { return x.Id } return "" } -type GetValueResponse struct { +type GetAttributeValueResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1097,8 +1097,8 @@ type GetValueResponse struct { Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *GetValueResponse) Reset() { - *x = GetValueResponse{} +func (x *GetAttributeValueResponse) Reset() { + *x = GetAttributeValueResponse{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1106,13 +1106,13 @@ func (x *GetValueResponse) Reset() { } } -func (x *GetValueResponse) String() string { +func (x *GetAttributeValueResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetValueResponse) ProtoMessage() {} +func (*GetAttributeValueResponse) ProtoMessage() {} -func (x *GetValueResponse) ProtoReflect() protoreflect.Message { +func (x *GetAttributeValueResponse) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1124,19 +1124,19 @@ func (x *GetValueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetValueResponse.ProtoReflect.Descriptor instead. -func (*GetValueResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*GetAttributeValueResponse) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{18} } -func (x *GetValueResponse) GetValue() *Value { +func (x *GetAttributeValueResponse) GetValue() *Value { if x != nil { return x.Value } return nil } -type ListValuesRequest struct { +type ListAttributeValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1144,8 +1144,8 @@ type ListValuesRequest struct { AttributeId string `protobuf:"bytes,1,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"` } -func (x *ListValuesRequest) Reset() { - *x = ListValuesRequest{} +func (x *ListAttributeValuesRequest) Reset() { + *x = ListAttributeValuesRequest{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1153,13 +1153,13 @@ func (x *ListValuesRequest) Reset() { } } -func (x *ListValuesRequest) String() string { +func (x *ListAttributeValuesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListValuesRequest) ProtoMessage() {} +func (*ListAttributeValuesRequest) ProtoMessage() {} -func (x *ListValuesRequest) ProtoReflect() protoreflect.Message { +func (x *ListAttributeValuesRequest) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1171,19 +1171,19 @@ func (x *ListValuesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListValuesRequest.ProtoReflect.Descriptor instead. -func (*ListValuesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListAttributeValuesRequest.ProtoReflect.Descriptor instead. +func (*ListAttributeValuesRequest) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{19} } -func (x *ListValuesRequest) GetAttributeId() string { +func (x *ListAttributeValuesRequest) GetAttributeId() string { if x != nil { return x.AttributeId } return "" } -type ListValuesResponse struct { +type ListAttributeValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1191,8 +1191,8 @@ type ListValuesResponse struct { Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } -func (x *ListValuesResponse) Reset() { - *x = ListValuesResponse{} +func (x *ListAttributeValuesResponse) Reset() { + *x = ListAttributeValuesResponse{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1200,13 +1200,13 @@ func (x *ListValuesResponse) Reset() { } } -func (x *ListValuesResponse) String() string { +func (x *ListAttributeValuesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListValuesResponse) ProtoMessage() {} +func (*ListAttributeValuesResponse) ProtoMessage() {} -func (x *ListValuesResponse) ProtoReflect() protoreflect.Message { +func (x *ListAttributeValuesResponse) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1218,19 +1218,19 @@ func (x *ListValuesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListValuesResponse.ProtoReflect.Descriptor instead. -func (*ListValuesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListAttributeValuesResponse.ProtoReflect.Descriptor instead. +func (*ListAttributeValuesResponse) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{20} } -func (x *ListValuesResponse) GetValues() []*Value { +func (x *ListAttributeValuesResponse) GetValues() []*Value { if x != nil { return x.Values } return nil } -type CreateValueRequest struct { +type CreateAttributeValueRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1239,8 +1239,8 @@ type CreateValueRequest struct { Value *ValueCreate `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (x *CreateValueRequest) Reset() { - *x = CreateValueRequest{} +func (x *CreateAttributeValueRequest) Reset() { + *x = CreateAttributeValueRequest{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1248,13 +1248,13 @@ func (x *CreateValueRequest) Reset() { } } -func (x *CreateValueRequest) String() string { +func (x *CreateAttributeValueRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateValueRequest) ProtoMessage() {} +func (*CreateAttributeValueRequest) ProtoMessage() {} -func (x *CreateValueRequest) ProtoReflect() protoreflect.Message { +func (x *CreateAttributeValueRequest) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1266,26 +1266,26 @@ func (x *CreateValueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateValueRequest.ProtoReflect.Descriptor instead. -func (*CreateValueRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CreateAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*CreateAttributeValueRequest) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{21} } -func (x *CreateValueRequest) GetAttributeId() string { +func (x *CreateAttributeValueRequest) GetAttributeId() string { if x != nil { return x.AttributeId } return "" } -func (x *CreateValueRequest) GetValue() *ValueCreate { +func (x *CreateAttributeValueRequest) GetValue() *ValueCreate { if x != nil { return x.Value } return nil } -type CreateValueResponse struct { +type CreateAttributeValueResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1293,8 +1293,8 @@ type CreateValueResponse struct { Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *CreateValueResponse) Reset() { - *x = CreateValueResponse{} +func (x *CreateAttributeValueResponse) Reset() { + *x = CreateAttributeValueResponse{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1302,13 +1302,13 @@ func (x *CreateValueResponse) Reset() { } } -func (x *CreateValueResponse) String() string { +func (x *CreateAttributeValueResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateValueResponse) ProtoMessage() {} +func (*CreateAttributeValueResponse) ProtoMessage() {} -func (x *CreateValueResponse) ProtoReflect() protoreflect.Message { +func (x *CreateAttributeValueResponse) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1320,19 +1320,19 @@ func (x *CreateValueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateValueResponse.ProtoReflect.Descriptor instead. -func (*CreateValueResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use CreateAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*CreateAttributeValueResponse) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{22} } -func (x *CreateValueResponse) GetValue() *Value { +func (x *CreateAttributeValueResponse) GetValue() *Value { if x != nil { return x.Value } return nil } -type UpdateValueRequest struct { +type UpdateAttributeValueRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1341,8 +1341,8 @@ type UpdateValueRequest struct { Value *ValueUpdate `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (x *UpdateValueRequest) Reset() { - *x = UpdateValueRequest{} +func (x *UpdateAttributeValueRequest) Reset() { + *x = UpdateAttributeValueRequest{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1350,13 +1350,13 @@ func (x *UpdateValueRequest) Reset() { } } -func (x *UpdateValueRequest) String() string { +func (x *UpdateAttributeValueRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateValueRequest) ProtoMessage() {} +func (*UpdateAttributeValueRequest) ProtoMessage() {} -func (x *UpdateValueRequest) ProtoReflect() protoreflect.Message { +func (x *UpdateAttributeValueRequest) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1368,26 +1368,26 @@ func (x *UpdateValueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateValueRequest.ProtoReflect.Descriptor instead. -func (*UpdateValueRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdateAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*UpdateAttributeValueRequest) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{23} } -func (x *UpdateValueRequest) GetId() string { +func (x *UpdateAttributeValueRequest) GetId() string { if x != nil { return x.Id } return "" } -func (x *UpdateValueRequest) GetValue() *ValueUpdate { +func (x *UpdateAttributeValueRequest) GetValue() *ValueUpdate { if x != nil { return x.Value } return nil } -type UpdateValueResponse struct { +type UpdateAttributeValueResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1395,8 +1395,8 @@ type UpdateValueResponse struct { Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *UpdateValueResponse) Reset() { - *x = UpdateValueResponse{} +func (x *UpdateAttributeValueResponse) Reset() { + *x = UpdateAttributeValueResponse{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1404,13 +1404,13 @@ func (x *UpdateValueResponse) Reset() { } } -func (x *UpdateValueResponse) String() string { +func (x *UpdateAttributeValueResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateValueResponse) ProtoMessage() {} +func (*UpdateAttributeValueResponse) ProtoMessage() {} -func (x *UpdateValueResponse) ProtoReflect() protoreflect.Message { +func (x *UpdateAttributeValueResponse) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1422,19 +1422,19 @@ func (x *UpdateValueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateValueResponse.ProtoReflect.Descriptor instead. -func (*UpdateValueResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdateAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*UpdateAttributeValueResponse) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{24} } -func (x *UpdateValueResponse) GetValue() *Value { +func (x *UpdateAttributeValueResponse) GetValue() *Value { if x != nil { return x.Value } return nil } -type DeleteValueRequest struct { +type DeleteAttributeValueRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1442,8 +1442,8 @@ type DeleteValueRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (x *DeleteValueRequest) Reset() { - *x = DeleteValueRequest{} +func (x *DeleteAttributeValueRequest) Reset() { + *x = DeleteAttributeValueRequest{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1451,13 +1451,13 @@ func (x *DeleteValueRequest) Reset() { } } -func (x *DeleteValueRequest) String() string { +func (x *DeleteAttributeValueRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteValueRequest) ProtoMessage() {} +func (*DeleteAttributeValueRequest) ProtoMessage() {} -func (x *DeleteValueRequest) ProtoReflect() protoreflect.Message { +func (x *DeleteAttributeValueRequest) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1469,19 +1469,19 @@ func (x *DeleteValueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteValueRequest.ProtoReflect.Descriptor instead. -func (*DeleteValueRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DeleteAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*DeleteAttributeValueRequest) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{25} } -func (x *DeleteValueRequest) GetId() string { +func (x *DeleteAttributeValueRequest) GetId() string { if x != nil { return x.Id } return "" } -type DeleteValueResponse struct { +type DeleteAttributeValueResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1489,8 +1489,8 @@ type DeleteValueResponse struct { Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *DeleteValueResponse) Reset() { - *x = DeleteValueResponse{} +func (x *DeleteAttributeValueResponse) Reset() { + *x = DeleteAttributeValueResponse{} if protoimpl.UnsafeEnabled { mi := &file_attributes_attributes_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1498,13 +1498,13 @@ func (x *DeleteValueResponse) Reset() { } } -func (x *DeleteValueResponse) String() string { +func (x *DeleteAttributeValueResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteValueResponse) ProtoMessage() {} +func (*DeleteAttributeValueResponse) ProtoMessage() {} -func (x *DeleteValueResponse) ProtoReflect() protoreflect.Message { +func (x *DeleteAttributeValueResponse) ProtoReflect() protoreflect.Message { mi := &file_attributes_attributes_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1516,12 +1516,12 @@ func (x *DeleteValueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteValueResponse.ProtoReflect.Descriptor instead. -func (*DeleteValueResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use DeleteAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*DeleteAttributeValueResponse) Descriptor() ([]byte, []int) { return file_attributes_attributes_proto_rawDescGZIP(), []int{26} } -func (x *DeleteValueResponse) GetValue() *Value { +func (x *DeleteAttributeValueResponse) GetValue() *Value { if x != nil { return x.Value } @@ -1656,144 +1656,157 @@ var file_attributes_attributes_proto_rawDesc = []byte{ 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, - 0x29, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, - 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3b, 0x0a, 0x10, 0x47, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3e, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, - 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, - 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x0b, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x3e, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x63, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3e, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, + 0x32, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x3e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x2a, 0xb3, 0x01, 0x0a, 0x15, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x28, 0x0a, - 0x24, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x41, 0x54, 0x54, 0x52, 0x49, + 0x02, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x1a, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, + 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x49, 0x64, 0x22, 0x48, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x29, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x1b, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x06, + 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, + 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6c, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x35, 0x0a, + 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x47, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xb3, 0x01, + 0x0a, 0x15, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x28, 0x0a, 0x24, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, - 0x4e, 0x55, 0x4d, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x4f, 0x46, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, - 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x41, 0x4e, 0x59, 0x5f, 0x4f, 0x46, 0x10, - 0x02, 0x12, 0x26, 0x0a, 0x22, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, - 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x48, 0x49, - 0x45, 0x52, 0x41, 0x52, 0x43, 0x48, 0x59, 0x10, 0x03, 0x32, 0x80, 0x09, 0x0a, 0x11, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x59, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x12, 0x21, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x13, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x1d, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, - 0x7a, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x18, 0x3a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, 0x0b, - 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x7f, 0x0a, 0x0f, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x22, - 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x4e, 0x55, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, + 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x41, 0x4c, + 0x4c, 0x5f, 0x4f, 0x46, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, + 0x55, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, + 0x55, 0x4d, 0x5f, 0x41, 0x4e, 0x59, 0x5f, 0x4f, 0x46, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x41, + 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x48, 0x49, 0x45, 0x52, 0x41, 0x52, 0x43, 0x48, + 0x59, 0x10, 0x03, 0x32, 0x81, 0x0a, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, 0x0a, 0x0e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x68, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6b, + 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x1f, + 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x20, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x7a, 0x0a, 0x0f, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x22, + 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, - 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, 0x10, 0x2f, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x74, 0x0a, 0x0f, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, - 0x22, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, - 0x2a, 0x10, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x12, 0x68, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, - 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, - 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x80, 0x01, 0x0a, - 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1e, 0x2e, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x2f, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, - 0x78, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1e, - 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x3a, + 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, 0x0b, 0x2f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x7f, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x19, - 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, 0x2f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x71, 0x0a, 0x0b, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1b, 0x2a, 0x19, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, - 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0x9b, 0x01, 0x0a, - 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, - 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x74, 0x64, 0x66, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x64, 0x66, 0x2d, 0x76, - 0x32, 0x2d, 0x70, 0x6f, 0x63, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0xca, 0x02, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0xe2, 0x02, 0x16, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x09, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, 0x10, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x74, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x23, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x2a, 0x10, 0x2f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x83, + 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x24, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x2e, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x21, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x2e, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x19, 0x2f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, 0x2f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x27, 0x2e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x5f, 0x2f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0x9b, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x0f, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x64, + 0x66, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x64, 0x66, 0x2d, 0x76, 0x32, 0x2d, 0x70, 0x6f, 0x63, + 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0xa2, + 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0xca, 0x02, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0xe2, + 0x02, 0x16, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1829,16 +1842,16 @@ var file_attributes_attributes_proto_goTypes = []interface{}{ (*UpdateAttributeResponse)(nil), // 15: attributes.UpdateAttributeResponse (*DeleteAttributeRequest)(nil), // 16: attributes.DeleteAttributeRequest (*DeleteAttributeResponse)(nil), // 17: attributes.DeleteAttributeResponse - (*GetValueRequest)(nil), // 18: attributes.GetValueRequest - (*GetValueResponse)(nil), // 19: attributes.GetValueResponse - (*ListValuesRequest)(nil), // 20: attributes.ListValuesRequest - (*ListValuesResponse)(nil), // 21: attributes.ListValuesResponse - (*CreateValueRequest)(nil), // 22: attributes.CreateValueRequest - (*CreateValueResponse)(nil), // 23: attributes.CreateValueResponse - (*UpdateValueRequest)(nil), // 24: attributes.UpdateValueRequest - (*UpdateValueResponse)(nil), // 25: attributes.UpdateValueResponse - (*DeleteValueRequest)(nil), // 26: attributes.DeleteValueRequest - (*DeleteValueResponse)(nil), // 27: attributes.DeleteValueResponse + (*GetAttributeValueRequest)(nil), // 18: attributes.GetAttributeValueRequest + (*GetAttributeValueResponse)(nil), // 19: attributes.GetAttributeValueResponse + (*ListAttributeValuesRequest)(nil), // 20: attributes.ListAttributeValuesRequest + (*ListAttributeValuesResponse)(nil), // 21: attributes.ListAttributeValuesResponse + (*CreateAttributeValueRequest)(nil), // 22: attributes.CreateAttributeValueRequest + (*CreateAttributeValueResponse)(nil), // 23: attributes.CreateAttributeValueResponse + (*UpdateAttributeValueRequest)(nil), // 24: attributes.UpdateAttributeValueRequest + (*UpdateAttributeValueResponse)(nil), // 25: attributes.UpdateAttributeValueResponse + (*DeleteAttributeValueRequest)(nil), // 26: attributes.DeleteAttributeValueRequest + (*DeleteAttributeValueResponse)(nil), // 27: attributes.DeleteAttributeValueResponse (*common.Metadata)(nil), // 28: common.Metadata (*common.MetadataMutable)(nil), // 29: common.MetadataMutable } @@ -1859,33 +1872,33 @@ var file_attributes_attributes_proto_depIdxs = []int32{ 2, // 13: attributes.UpdateAttributeRequest.attribute:type_name -> attributes.AttributeCreateUpdate 1, // 14: attributes.UpdateAttributeResponse.attribute:type_name -> attributes.Attribute 1, // 15: attributes.DeleteAttributeResponse.attribute:type_name -> attributes.Attribute - 3, // 16: attributes.GetValueResponse.value:type_name -> attributes.Value - 3, // 17: attributes.ListValuesResponse.values:type_name -> attributes.Value - 4, // 18: attributes.CreateValueRequest.value:type_name -> attributes.ValueCreate - 3, // 19: attributes.CreateValueResponse.value:type_name -> attributes.Value - 5, // 20: attributes.UpdateValueRequest.value:type_name -> attributes.ValueUpdate - 3, // 21: attributes.UpdateValueResponse.value:type_name -> attributes.Value - 3, // 22: attributes.DeleteValueResponse.value:type_name -> attributes.Value + 3, // 16: attributes.GetAttributeValueResponse.value:type_name -> attributes.Value + 3, // 17: attributes.ListAttributeValuesResponse.values:type_name -> attributes.Value + 4, // 18: attributes.CreateAttributeValueRequest.value:type_name -> attributes.ValueCreate + 3, // 19: attributes.CreateAttributeValueResponse.value:type_name -> attributes.Value + 5, // 20: attributes.UpdateAttributeValueRequest.value:type_name -> attributes.ValueUpdate + 3, // 21: attributes.UpdateAttributeValueResponse.value:type_name -> attributes.Value + 3, // 22: attributes.DeleteAttributeValueResponse.value:type_name -> attributes.Value 8, // 23: attributes.AttributesService.ListAttributes:input_type -> attributes.ListAttributesRequest - 20, // 24: attributes.AttributesService.ListAttributeValues:input_type -> attributes.ListValuesRequest + 20, // 24: attributes.AttributesService.ListAttributeValues:input_type -> attributes.ListAttributeValuesRequest 10, // 25: attributes.AttributesService.GetAttribute:input_type -> attributes.GetAttributeRequest 12, // 26: attributes.AttributesService.CreateAttribute:input_type -> attributes.CreateAttributeRequest 14, // 27: attributes.AttributesService.UpdateAttribute:input_type -> attributes.UpdateAttributeRequest 16, // 28: attributes.AttributesService.DeleteAttribute:input_type -> attributes.DeleteAttributeRequest - 18, // 29: attributes.AttributesService.GetValue:input_type -> attributes.GetValueRequest - 22, // 30: attributes.AttributesService.CreateValue:input_type -> attributes.CreateValueRequest - 24, // 31: attributes.AttributesService.UpdateValue:input_type -> attributes.UpdateValueRequest - 26, // 32: attributes.AttributesService.DeleteValue:input_type -> attributes.DeleteValueRequest + 18, // 29: attributes.AttributesService.GetAttributeValue:input_type -> attributes.GetAttributeValueRequest + 22, // 30: attributes.AttributesService.CreateAttributeValue:input_type -> attributes.CreateAttributeValueRequest + 24, // 31: attributes.AttributesService.UpdateAttributeValue:input_type -> attributes.UpdateAttributeValueRequest + 26, // 32: attributes.AttributesService.DeleteAttributeValue:input_type -> attributes.DeleteAttributeValueRequest 9, // 33: attributes.AttributesService.ListAttributes:output_type -> attributes.ListAttributesResponse - 21, // 34: attributes.AttributesService.ListAttributeValues:output_type -> attributes.ListValuesResponse + 21, // 34: attributes.AttributesService.ListAttributeValues:output_type -> attributes.ListAttributeValuesResponse 11, // 35: attributes.AttributesService.GetAttribute:output_type -> attributes.GetAttributeResponse 13, // 36: attributes.AttributesService.CreateAttribute:output_type -> attributes.CreateAttributeResponse 15, // 37: attributes.AttributesService.UpdateAttribute:output_type -> attributes.UpdateAttributeResponse 17, // 38: attributes.AttributesService.DeleteAttribute:output_type -> attributes.DeleteAttributeResponse - 19, // 39: attributes.AttributesService.GetValue:output_type -> attributes.GetValueResponse - 23, // 40: attributes.AttributesService.CreateValue:output_type -> attributes.CreateValueResponse - 25, // 41: attributes.AttributesService.UpdateValue:output_type -> attributes.UpdateValueResponse - 27, // 42: attributes.AttributesService.DeleteValue:output_type -> attributes.DeleteValueResponse + 19, // 39: attributes.AttributesService.GetAttributeValue:output_type -> attributes.GetAttributeValueResponse + 23, // 40: attributes.AttributesService.CreateAttributeValue:output_type -> attributes.CreateAttributeValueResponse + 25, // 41: attributes.AttributesService.UpdateAttributeValue:output_type -> attributes.UpdateAttributeValueResponse + 27, // 42: attributes.AttributesService.DeleteAttributeValue:output_type -> attributes.DeleteAttributeValueResponse 33, // [33:43] is the sub-list for method output_type 23, // [23:33] is the sub-list for method input_type 23, // [23:23] is the sub-list for extension type_name @@ -2104,7 +2117,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetValueRequest); i { + switch v := v.(*GetAttributeValueRequest); i { case 0: return &v.state case 1: @@ -2116,7 +2129,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetValueResponse); i { + switch v := v.(*GetAttributeValueResponse); i { case 0: return &v.state case 1: @@ -2128,7 +2141,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListValuesRequest); i { + switch v := v.(*ListAttributeValuesRequest); i { case 0: return &v.state case 1: @@ -2140,7 +2153,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListValuesResponse); i { + switch v := v.(*ListAttributeValuesResponse); i { case 0: return &v.state case 1: @@ -2152,7 +2165,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateValueRequest); i { + switch v := v.(*CreateAttributeValueRequest); i { case 0: return &v.state case 1: @@ -2164,7 +2177,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateValueResponse); i { + switch v := v.(*CreateAttributeValueResponse); i { case 0: return &v.state case 1: @@ -2176,7 +2189,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateValueRequest); i { + switch v := v.(*UpdateAttributeValueRequest); i { case 0: return &v.state case 1: @@ -2188,7 +2201,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateValueResponse); i { + switch v := v.(*UpdateAttributeValueResponse); i { case 0: return &v.state case 1: @@ -2200,7 +2213,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteValueRequest); i { + switch v := v.(*DeleteAttributeValueRequest); i { case 0: return &v.state case 1: @@ -2212,7 +2225,7 @@ func file_attributes_attributes_proto_init() { } } file_attributes_attributes_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteValueResponse); i { + switch v := v.(*DeleteAttributeValueResponse); i { case 0: return &v.state case 1: diff --git a/sdk/attributes/attributes.pb.gw.go b/sdk/attributes/attributes.pb.gw.go index 8b667d5b82..075fd66321 100644 --- a/sdk/attributes/attributes.pb.gw.go +++ b/sdk/attributes/attributes.pb.gw.go @@ -237,8 +237,8 @@ func local_request_AttributesService_DeleteAttribute_0(ctx context.Context, mars } -func request_AttributesService_GetValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetValueRequest +func request_AttributesService_GetAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAttributeValueRequest var metadata runtime.ServerMetadata var ( @@ -258,13 +258,13 @@ func request_AttributesService_GetValue_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := client.GetValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_AttributesService_GetValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetValueRequest +func local_request_AttributesService_GetAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetAttributeValueRequest var metadata runtime.ServerMetadata var ( @@ -284,13 +284,13 @@ func local_request_AttributesService_GetValue_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := server.GetValue(ctx, &protoReq) + msg, err := server.GetAttributeValue(ctx, &protoReq) return msg, metadata, err } -func request_AttributesService_CreateValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateValueRequest +func request_AttributesService_CreateAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateAttributeValueRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -318,13 +318,13 @@ func request_AttributesService_CreateValue_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attribute_id", err) } - msg, err := client.CreateValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.CreateAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_AttributesService_CreateValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateValueRequest +func local_request_AttributesService_CreateAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateAttributeValueRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -352,13 +352,13 @@ func local_request_AttributesService_CreateValue_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attribute_id", err) } - msg, err := server.CreateValue(ctx, &protoReq) + msg, err := server.CreateAttributeValue(ctx, &protoReq) return msg, metadata, err } -func request_AttributesService_UpdateValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateValueRequest +func request_AttributesService_UpdateAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateAttributeValueRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -386,13 +386,13 @@ func request_AttributesService_UpdateValue_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := client.UpdateValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.UpdateAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_AttributesService_UpdateValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateValueRequest +func local_request_AttributesService_UpdateAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateAttributeValueRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -420,13 +420,13 @@ func local_request_AttributesService_UpdateValue_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := server.UpdateValue(ctx, &protoReq) + msg, err := server.UpdateAttributeValue(ctx, &protoReq) return msg, metadata, err } -func request_AttributesService_DeleteValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteValueRequest +func request_AttributesService_DeleteAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client AttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteAttributeValueRequest var metadata runtime.ServerMetadata var ( @@ -446,13 +446,13 @@ func request_AttributesService_DeleteValue_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := client.DeleteValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.DeleteAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_AttributesService_DeleteValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteValueRequest +func local_request_AttributesService_DeleteAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server AttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteAttributeValueRequest var metadata runtime.ServerMetadata var ( @@ -472,7 +472,7 @@ func local_request_AttributesService_DeleteValue_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := server.DeleteValue(ctx, &protoReq) + msg, err := server.DeleteAttributeValue(ctx, &protoReq) return msg, metadata, err } @@ -583,7 +583,7 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se }) - mux.Handle("GET", pattern_AttributesService_GetValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_AttributesService_GetAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -591,12 +591,12 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/GetValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/GetAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_AttributesService_GetValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_AttributesService_GetAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -604,11 +604,11 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se return } - forward_AttributesService_GetValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_GetAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AttributesService_CreateValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AttributesService_CreateAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -616,12 +616,12 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/CreateValue", runtime.WithHTTPPathPattern("/attributes/{attribute_id}/values")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/CreateAttributeValue", runtime.WithHTTPPathPattern("/attributes/{attribute_id}/values")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_AttributesService_CreateValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_AttributesService_CreateAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -629,11 +629,11 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se return } - forward_AttributesService_CreateValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_CreateAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AttributesService_UpdateValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AttributesService_UpdateAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -641,12 +641,12 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/UpdateValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/UpdateAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_AttributesService_UpdateValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_AttributesService_UpdateAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -654,11 +654,11 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se return } - forward_AttributesService_UpdateValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_UpdateAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_AttributesService_DeleteValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_AttributesService_DeleteAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -666,12 +666,12 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/DeleteValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/attributes.AttributesService/DeleteAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_AttributesService_DeleteValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_AttributesService_DeleteAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -679,7 +679,7 @@ func RegisterAttributesServiceHandlerServer(ctx context.Context, mux *runtime.Se return } - forward_AttributesService_DeleteValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_DeleteAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -812,91 +812,91 @@ func RegisterAttributesServiceHandlerClient(ctx context.Context, mux *runtime.Se }) - mux.Handle("GET", pattern_AttributesService_GetValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_AttributesService_GetAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/GetValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/GetAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AttributesService_GetValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AttributesService_GetAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AttributesService_GetValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_GetAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AttributesService_CreateValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AttributesService_CreateAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/CreateValue", runtime.WithHTTPPathPattern("/attributes/{attribute_id}/values")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/CreateAttributeValue", runtime.WithHTTPPathPattern("/attributes/{attribute_id}/values")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AttributesService_CreateValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AttributesService_CreateAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AttributesService_CreateValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_CreateAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AttributesService_UpdateValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AttributesService_UpdateAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/UpdateValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/UpdateAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AttributesService_UpdateValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AttributesService_UpdateAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AttributesService_UpdateValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_UpdateAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_AttributesService_DeleteValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_AttributesService_DeleteAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/DeleteValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/attributes.AttributesService/DeleteAttributeValue", runtime.WithHTTPPathPattern("/attributes/_/values/{id}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AttributesService_DeleteValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AttributesService_DeleteAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AttributesService_DeleteValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AttributesService_DeleteAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -912,13 +912,13 @@ var ( pattern_AttributesService_DeleteAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"attributes", "id"}, "")) - pattern_AttributesService_GetValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) + pattern_AttributesService_GetAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) - pattern_AttributesService_CreateValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"attributes", "attribute_id", "values"}, "")) + pattern_AttributesService_CreateAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"attributes", "attribute_id", "values"}, "")) - pattern_AttributesService_UpdateValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) + pattern_AttributesService_UpdateAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) - pattern_AttributesService_DeleteValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) + pattern_AttributesService_DeleteAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"attributes", "_", "values", "id"}, "")) ) var ( @@ -930,11 +930,11 @@ var ( forward_AttributesService_DeleteAttribute_0 = runtime.ForwardResponseMessage - forward_AttributesService_GetValue_0 = runtime.ForwardResponseMessage + forward_AttributesService_GetAttributeValue_0 = runtime.ForwardResponseMessage - forward_AttributesService_CreateValue_0 = runtime.ForwardResponseMessage + forward_AttributesService_CreateAttributeValue_0 = runtime.ForwardResponseMessage - forward_AttributesService_UpdateValue_0 = runtime.ForwardResponseMessage + forward_AttributesService_UpdateAttributeValue_0 = runtime.ForwardResponseMessage - forward_AttributesService_DeleteValue_0 = runtime.ForwardResponseMessage + forward_AttributesService_DeleteAttributeValue_0 = runtime.ForwardResponseMessage ) diff --git a/sdk/attributes/attributes_grpc.pb.go b/sdk/attributes/attributes_grpc.pb.go index 2560157a16..34b52a73de 100644 --- a/sdk/attributes/attributes_grpc.pb.go +++ b/sdk/attributes/attributes_grpc.pb.go @@ -19,16 +19,16 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - AttributesService_ListAttributes_FullMethodName = "/attributes.AttributesService/ListAttributes" - AttributesService_ListAttributeValues_FullMethodName = "/attributes.AttributesService/ListAttributeValues" - AttributesService_GetAttribute_FullMethodName = "/attributes.AttributesService/GetAttribute" - AttributesService_CreateAttribute_FullMethodName = "/attributes.AttributesService/CreateAttribute" - AttributesService_UpdateAttribute_FullMethodName = "/attributes.AttributesService/UpdateAttribute" - AttributesService_DeleteAttribute_FullMethodName = "/attributes.AttributesService/DeleteAttribute" - AttributesService_GetValue_FullMethodName = "/attributes.AttributesService/GetValue" - AttributesService_CreateValue_FullMethodName = "/attributes.AttributesService/CreateValue" - AttributesService_UpdateValue_FullMethodName = "/attributes.AttributesService/UpdateValue" - AttributesService_DeleteValue_FullMethodName = "/attributes.AttributesService/DeleteValue" + AttributesService_ListAttributes_FullMethodName = "/attributes.AttributesService/ListAttributes" + AttributesService_ListAttributeValues_FullMethodName = "/attributes.AttributesService/ListAttributeValues" + AttributesService_GetAttribute_FullMethodName = "/attributes.AttributesService/GetAttribute" + AttributesService_CreateAttribute_FullMethodName = "/attributes.AttributesService/CreateAttribute" + AttributesService_UpdateAttribute_FullMethodName = "/attributes.AttributesService/UpdateAttribute" + AttributesService_DeleteAttribute_FullMethodName = "/attributes.AttributesService/DeleteAttribute" + AttributesService_GetAttributeValue_FullMethodName = "/attributes.AttributesService/GetAttributeValue" + AttributesService_CreateAttributeValue_FullMethodName = "/attributes.AttributesService/CreateAttributeValue" + AttributesService_UpdateAttributeValue_FullMethodName = "/attributes.AttributesService/UpdateAttributeValue" + AttributesService_DeleteAttributeValue_FullMethodName = "/attributes.AttributesService/DeleteAttributeValue" ) // AttributesServiceClient is the client API for AttributesService service. @@ -42,7 +42,7 @@ type AttributesServiceClient interface { // List Values // Example: // grpcurl -plaintext -d '{"attribute_id": "attribute_id"}' localhost:8080 attributes.AttributesService/ListValues - ListAttributeValues(ctx context.Context, in *ListValuesRequest, opts ...grpc.CallOption) (*ListValuesResponse, error) + ListAttributeValues(ctx context.Context, in *ListAttributeValuesRequest, opts ...grpc.CallOption) (*ListAttributeValuesResponse, error) GetAttribute(ctx context.Context, in *GetAttributeRequest, opts ...grpc.CallOption) (*GetAttributeResponse, error) // Create Attribute // Example: @@ -52,14 +52,14 @@ type AttributesServiceClient interface { UpdateAttribute(ctx context.Context, in *UpdateAttributeRequest, opts ...grpc.CallOption) (*UpdateAttributeResponse, error) DeleteAttribute(ctx context.Context, in *DeleteAttributeRequest, opts ...grpc.CallOption) (*DeleteAttributeResponse, error) // * Attribute Value * - GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) + GetAttributeValue(ctx context.Context, in *GetAttributeValueRequest, opts ...grpc.CallOption) (*GetAttributeValueResponse, error) // Create Attribute Value // Example: // // grpcurl -plaintext -d '{"attribute_id": "attribute_id", "value": {"value": "value"}}' localhost:8080 attributes.AttributesService/CreateValue - CreateValue(ctx context.Context, in *CreateValueRequest, opts ...grpc.CallOption) (*CreateValueResponse, error) - UpdateValue(ctx context.Context, in *UpdateValueRequest, opts ...grpc.CallOption) (*UpdateValueResponse, error) - DeleteValue(ctx context.Context, in *DeleteValueRequest, opts ...grpc.CallOption) (*DeleteValueResponse, error) + CreateAttributeValue(ctx context.Context, in *CreateAttributeValueRequest, opts ...grpc.CallOption) (*CreateAttributeValueResponse, error) + UpdateAttributeValue(ctx context.Context, in *UpdateAttributeValueRequest, opts ...grpc.CallOption) (*UpdateAttributeValueResponse, error) + DeleteAttributeValue(ctx context.Context, in *DeleteAttributeValueRequest, opts ...grpc.CallOption) (*DeleteAttributeValueResponse, error) } type attributesServiceClient struct { @@ -79,8 +79,8 @@ func (c *attributesServiceClient) ListAttributes(ctx context.Context, in *ListAt return out, nil } -func (c *attributesServiceClient) ListAttributeValues(ctx context.Context, in *ListValuesRequest, opts ...grpc.CallOption) (*ListValuesResponse, error) { - out := new(ListValuesResponse) +func (c *attributesServiceClient) ListAttributeValues(ctx context.Context, in *ListAttributeValuesRequest, opts ...grpc.CallOption) (*ListAttributeValuesResponse, error) { + out := new(ListAttributeValuesResponse) err := c.cc.Invoke(ctx, AttributesService_ListAttributeValues_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -124,36 +124,36 @@ func (c *attributesServiceClient) DeleteAttribute(ctx context.Context, in *Delet return out, nil } -func (c *attributesServiceClient) GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) { - out := new(GetValueResponse) - err := c.cc.Invoke(ctx, AttributesService_GetValue_FullMethodName, in, out, opts...) +func (c *attributesServiceClient) GetAttributeValue(ctx context.Context, in *GetAttributeValueRequest, opts ...grpc.CallOption) (*GetAttributeValueResponse, error) { + out := new(GetAttributeValueResponse) + err := c.cc.Invoke(ctx, AttributesService_GetAttributeValue_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *attributesServiceClient) CreateValue(ctx context.Context, in *CreateValueRequest, opts ...grpc.CallOption) (*CreateValueResponse, error) { - out := new(CreateValueResponse) - err := c.cc.Invoke(ctx, AttributesService_CreateValue_FullMethodName, in, out, opts...) +func (c *attributesServiceClient) CreateAttributeValue(ctx context.Context, in *CreateAttributeValueRequest, opts ...grpc.CallOption) (*CreateAttributeValueResponse, error) { + out := new(CreateAttributeValueResponse) + err := c.cc.Invoke(ctx, AttributesService_CreateAttributeValue_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *attributesServiceClient) UpdateValue(ctx context.Context, in *UpdateValueRequest, opts ...grpc.CallOption) (*UpdateValueResponse, error) { - out := new(UpdateValueResponse) - err := c.cc.Invoke(ctx, AttributesService_UpdateValue_FullMethodName, in, out, opts...) +func (c *attributesServiceClient) UpdateAttributeValue(ctx context.Context, in *UpdateAttributeValueRequest, opts ...grpc.CallOption) (*UpdateAttributeValueResponse, error) { + out := new(UpdateAttributeValueResponse) + err := c.cc.Invoke(ctx, AttributesService_UpdateAttributeValue_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *attributesServiceClient) DeleteValue(ctx context.Context, in *DeleteValueRequest, opts ...grpc.CallOption) (*DeleteValueResponse, error) { - out := new(DeleteValueResponse) - err := c.cc.Invoke(ctx, AttributesService_DeleteValue_FullMethodName, in, out, opts...) +func (c *attributesServiceClient) DeleteAttributeValue(ctx context.Context, in *DeleteAttributeValueRequest, opts ...grpc.CallOption) (*DeleteAttributeValueResponse, error) { + out := new(DeleteAttributeValueResponse) + err := c.cc.Invoke(ctx, AttributesService_DeleteAttributeValue_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -171,7 +171,7 @@ type AttributesServiceServer interface { // List Values // Example: // grpcurl -plaintext -d '{"attribute_id": "attribute_id"}' localhost:8080 attributes.AttributesService/ListValues - ListAttributeValues(context.Context, *ListValuesRequest) (*ListValuesResponse, error) + ListAttributeValues(context.Context, *ListAttributeValuesRequest) (*ListAttributeValuesResponse, error) GetAttribute(context.Context, *GetAttributeRequest) (*GetAttributeResponse, error) // Create Attribute // Example: @@ -181,14 +181,14 @@ type AttributesServiceServer interface { UpdateAttribute(context.Context, *UpdateAttributeRequest) (*UpdateAttributeResponse, error) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*DeleteAttributeResponse, error) // * Attribute Value * - GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) + GetAttributeValue(context.Context, *GetAttributeValueRequest) (*GetAttributeValueResponse, error) // Create Attribute Value // Example: // // grpcurl -plaintext -d '{"attribute_id": "attribute_id", "value": {"value": "value"}}' localhost:8080 attributes.AttributesService/CreateValue - CreateValue(context.Context, *CreateValueRequest) (*CreateValueResponse, error) - UpdateValue(context.Context, *UpdateValueRequest) (*UpdateValueResponse, error) - DeleteValue(context.Context, *DeleteValueRequest) (*DeleteValueResponse, error) + CreateAttributeValue(context.Context, *CreateAttributeValueRequest) (*CreateAttributeValueResponse, error) + UpdateAttributeValue(context.Context, *UpdateAttributeValueRequest) (*UpdateAttributeValueResponse, error) + DeleteAttributeValue(context.Context, *DeleteAttributeValueRequest) (*DeleteAttributeValueResponse, error) mustEmbedUnimplementedAttributesServiceServer() } @@ -199,7 +199,7 @@ type UnimplementedAttributesServiceServer struct { func (UnimplementedAttributesServiceServer) ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAttributes not implemented") } -func (UnimplementedAttributesServiceServer) ListAttributeValues(context.Context, *ListValuesRequest) (*ListValuesResponse, error) { +func (UnimplementedAttributesServiceServer) ListAttributeValues(context.Context, *ListAttributeValuesRequest) (*ListAttributeValuesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAttributeValues not implemented") } func (UnimplementedAttributesServiceServer) GetAttribute(context.Context, *GetAttributeRequest) (*GetAttributeResponse, error) { @@ -214,17 +214,17 @@ func (UnimplementedAttributesServiceServer) UpdateAttribute(context.Context, *Up func (UnimplementedAttributesServiceServer) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*DeleteAttributeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAttribute not implemented") } -func (UnimplementedAttributesServiceServer) GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetValue not implemented") +func (UnimplementedAttributesServiceServer) GetAttributeValue(context.Context, *GetAttributeValueRequest) (*GetAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAttributeValue not implemented") } -func (UnimplementedAttributesServiceServer) CreateValue(context.Context, *CreateValueRequest) (*CreateValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateValue not implemented") +func (UnimplementedAttributesServiceServer) CreateAttributeValue(context.Context, *CreateAttributeValueRequest) (*CreateAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAttributeValue not implemented") } -func (UnimplementedAttributesServiceServer) UpdateValue(context.Context, *UpdateValueRequest) (*UpdateValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateValue not implemented") +func (UnimplementedAttributesServiceServer) UpdateAttributeValue(context.Context, *UpdateAttributeValueRequest) (*UpdateAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAttributeValue not implemented") } -func (UnimplementedAttributesServiceServer) DeleteValue(context.Context, *DeleteValueRequest) (*DeleteValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteValue not implemented") +func (UnimplementedAttributesServiceServer) DeleteAttributeValue(context.Context, *DeleteAttributeValueRequest) (*DeleteAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAttributeValue not implemented") } func (UnimplementedAttributesServiceServer) mustEmbedUnimplementedAttributesServiceServer() {} @@ -258,7 +258,7 @@ func _AttributesService_ListAttributes_Handler(srv interface{}, ctx context.Cont } func _AttributesService_ListAttributeValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListValuesRequest) + in := new(ListAttributeValuesRequest) if err := dec(in); err != nil { return nil, err } @@ -270,7 +270,7 @@ func _AttributesService_ListAttributeValues_Handler(srv interface{}, ctx context FullMethod: AttributesService_ListAttributeValues_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttributesServiceServer).ListAttributeValues(ctx, req.(*ListValuesRequest)) + return srv.(AttributesServiceServer).ListAttributeValues(ctx, req.(*ListAttributeValuesRequest)) } return interceptor(ctx, in, info, handler) } @@ -347,74 +347,74 @@ func _AttributesService_DeleteAttribute_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } -func _AttributesService_GetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetValueRequest) +func _AttributesService_GetAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAttributeValueRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AttributesServiceServer).GetValue(ctx, in) + return srv.(AttributesServiceServer).GetAttributeValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttributesService_GetValue_FullMethodName, + FullMethod: AttributesService_GetAttributeValue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttributesServiceServer).GetValue(ctx, req.(*GetValueRequest)) + return srv.(AttributesServiceServer).GetAttributeValue(ctx, req.(*GetAttributeValueRequest)) } return interceptor(ctx, in, info, handler) } -func _AttributesService_CreateValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateValueRequest) +func _AttributesService_CreateAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateAttributeValueRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AttributesServiceServer).CreateValue(ctx, in) + return srv.(AttributesServiceServer).CreateAttributeValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttributesService_CreateValue_FullMethodName, + FullMethod: AttributesService_CreateAttributeValue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttributesServiceServer).CreateValue(ctx, req.(*CreateValueRequest)) + return srv.(AttributesServiceServer).CreateAttributeValue(ctx, req.(*CreateAttributeValueRequest)) } return interceptor(ctx, in, info, handler) } -func _AttributesService_UpdateValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateValueRequest) +func _AttributesService_UpdateAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateAttributeValueRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AttributesServiceServer).UpdateValue(ctx, in) + return srv.(AttributesServiceServer).UpdateAttributeValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttributesService_UpdateValue_FullMethodName, + FullMethod: AttributesService_UpdateAttributeValue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttributesServiceServer).UpdateValue(ctx, req.(*UpdateValueRequest)) + return srv.(AttributesServiceServer).UpdateAttributeValue(ctx, req.(*UpdateAttributeValueRequest)) } return interceptor(ctx, in, info, handler) } -func _AttributesService_DeleteValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteValueRequest) +func _AttributesService_DeleteAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteAttributeValueRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AttributesServiceServer).DeleteValue(ctx, in) + return srv.(AttributesServiceServer).DeleteAttributeValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AttributesService_DeleteValue_FullMethodName, + FullMethod: AttributesService_DeleteAttributeValue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttributesServiceServer).DeleteValue(ctx, req.(*DeleteValueRequest)) + return srv.(AttributesServiceServer).DeleteAttributeValue(ctx, req.(*DeleteAttributeValueRequest)) } return interceptor(ctx, in, info, handler) } @@ -451,20 +451,20 @@ var AttributesService_ServiceDesc = grpc.ServiceDesc{ Handler: _AttributesService_DeleteAttribute_Handler, }, { - MethodName: "GetValue", - Handler: _AttributesService_GetValue_Handler, + MethodName: "GetAttributeValue", + Handler: _AttributesService_GetAttributeValue_Handler, }, { - MethodName: "CreateValue", - Handler: _AttributesService_CreateValue_Handler, + MethodName: "CreateAttributeValue", + Handler: _AttributesService_CreateAttributeValue_Handler, }, { - MethodName: "UpdateValue", - Handler: _AttributesService_UpdateValue_Handler, + MethodName: "UpdateAttributeValue", + Handler: _AttributesService_UpdateAttributeValue_Handler, }, { - MethodName: "DeleteValue", - Handler: _AttributesService_DeleteValue_Handler, + MethodName: "DeleteAttributeValue", + Handler: _AttributesService_DeleteAttributeValue_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/sdk/resourcemapping/resource_mapping_grpc.pb.go b/sdk/resourcemapping/resource_mapping_grpc.pb.go index 8169380b6f..9908641f7e 100644 --- a/sdk/resourcemapping/resource_mapping_grpc.pb.go +++ b/sdk/resourcemapping/resource_mapping_grpc.pb.go @@ -30,11 +30,194 @@ const ( // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ResourceMappingServiceClient interface { - // Resource Mappings + // Request Example: + // - empty body + // + // Response Example: + // { + // "resource_mappings": [ + // { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // ] + // } ListResourceMappings(ctx context.Context, in *ListResourceMappingsRequest, opts ...grpc.CallOption) (*ListResourceMappingsResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e" + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } GetResourceMapping(ctx context.Context, in *GetResourceMappingRequest, opts ...grpc.CallOption) (*GetResourceMappingResponse, error) + // Request Example: + // { + // "resource_mapping": { + // "attribute_value_id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "terms": [ + // "TOPSECRET", + // "TS", + // ] + // } + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } CreateResourceMapping(ctx context.Context, in *CreateResourceMappingRequest, opts ...grpc.CallOption) (*CreateResourceMappingResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "resource_mapping": { + // "attribute_value_id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "terms": [ + // "TOPSECRET", + // "TS", + // "NEWTERM" + // ] + // } + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } UpdateResourceMapping(ctx context.Context, in *UpdateResourceMappingRequest, opts ...grpc.CallOption) (*UpdateResourceMappingResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e" + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } DeleteResourceMapping(ctx context.Context, in *DeleteResourceMappingRequest, opts ...grpc.CallOption) (*DeleteResourceMappingResponse, error) } @@ -95,11 +278,194 @@ func (c *resourceMappingServiceClient) DeleteResourceMapping(ctx context.Context // All implementations must embed UnimplementedResourceMappingServiceServer // for forward compatibility type ResourceMappingServiceServer interface { - // Resource Mappings + // Request Example: + // - empty body + // + // Response Example: + // { + // "resource_mappings": [ + // { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // ] + // } ListResourceMappings(context.Context, *ListResourceMappingsRequest) (*ListResourceMappingsResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e" + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } GetResourceMapping(context.Context, *GetResourceMappingRequest) (*GetResourceMappingResponse, error) + // Request Example: + // { + // "resource_mapping": { + // "attribute_value_id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "terms": [ + // "TOPSECRET", + // "TS", + // ] + // } + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } CreateResourceMapping(context.Context, *CreateResourceMappingRequest) (*CreateResourceMappingResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "resource_mapping": { + // "attribute_value_id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "terms": [ + // "TOPSECRET", + // "TS", + // "NEWTERM" + // ] + // } + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } UpdateResourceMapping(context.Context, *UpdateResourceMappingRequest) (*UpdateResourceMappingResponse, error) + // Request Example: + // { + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e" + // } + // + // Response Example: + // { + // "resource_mapping": { + // "terms": [ + // "TOPSECRET", + // "TS", + // ], + // "id": "3c649464-95b4-4fe0-a09c-ca4b1fecbb0e", + // "metadata": { + // "labels": [], + // "created_at": { + // "seconds": "1706103276", + // "nanos": 510718000 + // }, + // "updated_at": { + // "seconds": "1706107873", + // "nanos": 399786000 + // }, + // "description": "" + // }, + // "attribute_value": { + // "members": [], + // "id": "f0d1d4f6-bff9-45fd-8170-607b6b559349", + // "metadata": null, + // "attribute_id": "", + // "value": "value1" + // } + // } + // } DeleteResourceMapping(context.Context, *DeleteResourceMappingRequest) (*DeleteResourceMappingResponse, error) mustEmbedUnimplementedResourceMappingServiceServer() } diff --git a/services/attributes/attributes.go b/services/attributes/attributes.go index 814ed05306..6aa256c581 100644 --- a/services/attributes/attributes.go +++ b/services/attributes/attributes.go @@ -109,68 +109,63 @@ func (s *AttributesService) DeleteAttribute(ctx context.Context, /// Attribute Values /// -func (s *AttributesService) CreateAttributeValue(ctx context.Context, req *attributes.CreateValueRequest) (*attributes.CreateValueResponse, error) { - rsp := &attributes.CreateValueResponse{} - +func (s *AttributesService) CreateAttributeValue(ctx context.Context, req *attributes.CreateAttributeValueRequest) (*attributes.CreateAttributeValueResponse, error) { item, err := s.dbClient.CreateAttributeValue(ctx, req.Value) if err != nil { slog.Error(services.ErrCreatingResource, slog.String("error", err.Error())) return nil, status.Error(codes.Internal, services.ErrCreatingResource) } - rsp.Value = item - return rsp, nil + return &attributes.CreateAttributeValueResponse{ + Value: item, + }, nil } -func (s *AttributesService) ListAttributeValues(ctx context.Context, req *attributes.ListValuesRequest) (*attributes.ListValuesResponse, error) { - rsp := &attributes.ListValuesResponse{} - +func (s *AttributesService) ListAttributeValues(ctx context.Context, req *attributes.ListAttributeValuesRequest) (*attributes.ListAttributeValuesResponse, error) { list, err := s.dbClient.ListAttributeValues(ctx, req.AttributeId) if err != nil { slog.Error(services.ErrListingResource, slog.String("error", err.Error())) return nil, status.Error(codes.Internal, services.ErrListingResource) } - rsp.Values = list - return rsp, nil + return &attributes.ListAttributeValuesResponse{ + Values: list, + }, nil } -func (s *AttributesService) GetAttributeValue(ctx context.Context, req *attributes.GetValueRequest) (*attributes.GetValueResponse, error) { - rsp := &attributes.GetValueResponse{} - +func (s *AttributesService) GetAttributeValue(ctx context.Context, req *attributes.GetAttributeValueRequest) (*attributes.GetAttributeValueResponse, error) { item, err := s.dbClient.GetAttributeValue(ctx, req.Id) if err != nil { slog.Error(services.ErrGettingResource, slog.String("error", err.Error())) return nil, status.Error(codes.Internal, services.ErrGettingResource) } - rsp.Value = item - return rsp, nil + return &attributes.GetAttributeValueResponse{ + Value: item, + }, nil } -func (s *AttributesService) UpdateAttributeValue(ctx context.Context, req *attributes.UpdateValueRequest) (*attributes.UpdateValueResponse, error) { - rsp := &attributes.UpdateValueResponse{} - +func (s *AttributesService) UpdateAttributeValue(ctx context.Context, req *attributes.UpdateAttributeValueRequest) (*attributes.UpdateAttributeValueResponse, error) { a, err := s.dbClient.UpdateAttributeValue(ctx, req.Id, req.Value) if err != nil { slog.Error(services.ErrUpdatingResource, slog.String("error", err.Error())) - return &attributes.UpdateValueResponse{}, + return nil, status.Error(codes.Internal, services.ErrUpdatingResource) } - rsp.Value = a - return rsp, nil + return &attributes.UpdateAttributeValueResponse{ + Value: a, + }, nil } -func (s *AttributesService) DeleteAttributeValue(ctx context.Context, req *attributes.DeleteValueRequest) (*attributes.DeleteValueResponse, error) { - rsp := &attributes.DeleteValueResponse{} - +func (s *AttributesService) DeleteAttributeValue(ctx context.Context, req *attributes.DeleteAttributeValueRequest) (*attributes.DeleteAttributeValueResponse, error) { a, err := s.dbClient.DeleteAttributeValue(ctx, req.Id) if err != nil { slog.Error(services.ErrDeletingResource, slog.String("error", err.Error())) return nil, status.Error(codes.Internal, services.ErrDeletingResource) } - rsp.Value = a - return rsp, nil + return &attributes.DeleteAttributeValueResponse{ + Value: a, + }, nil }